Simple Terminal Question

Discussion in 'Mac Programming' started by ctferrara, Jul 6, 2009.

  1. ctferrara macrumors newbie

    Nov 7, 2008
    I just discovered "Prowl" for the iphone and also growl notify.

    so my question it possible to run a terminal command inside of a command.

    for example. growlnotify -m date "+%A, %B %d"

    and have it execute the date part before the growlnotify therefore displaying the current date in the growl message.

  2. lee1210 macrumors 68040


    Jan 10, 2005
    Dallas, TX
    You should be able to backtick the date command and get it going:
    growlnotify -m "`date "+%A, %B %d"` here is the rest of the message"


Share This Page