Simple Terminal Question

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

  1. macrumors newbie

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

    so my question is...is 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.

    thanks
     
  2. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    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"

    -Lee
     

Share This Page