Register
It is currently Thu Sep 18, 2014 11:44 am

HERE Document, osascript tee output to log?


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Wed May 23, 2012 4:03 pm   

Joined: Wed May 23, 2012 3:08 pm
Posts: 1
Hello:

I am using a here document with osascript & tee and I can't figure out how to get the output to a log file. I get output in terminal, but not in the log file.

Here is the script snippet I am trying...

Code:
osascript <<EOT 2>&1 | tee -a "${PATH_TO_LOG_FILE}"
   with timeout of 100000 seconds
      tell application "DiskWarrior"
         activate
         repeat until ready is true
            delay 1
         end repeat
         rebuild disk "${DISKWARRIOR_REBUILD_VOL}" replacing yes
      end tell
   end timeout
EOT


Any suggestions?


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP