![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I want to know how we can give alias entry in cron | naree | SUN Solaris | 1 | 03-12-2008 09:46 AM |
| cron entry | rujus | UNIX for Dummies Questions & Answers | 7 | 01-29-2007 05:36 PM |
| cron entry error | capeme | Shell Programming and Scripting | 6 | 10-26-2006 09:05 AM |
| Cron job entry not running | hkapil | Shell Programming and Scripting | 1 | 11-21-2005 10:46 AM |
| Cron entry | rramanuj | AIX | 1 | 11-01-2005 02:35 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
capture shell output in cron entry
Hey all,
I'm running scripts from cron and I want to capture the output from the 1 file handle. Ex. * * * * * /test.sh 1>test.log. I also want to append a formatted date to the file. * * * * /test.sh 1>test.log_date +%m%d%y but I keep keep getting the output as if I had just added the date command. What I want is test.log_041608 what I get is test.log_Wed Apr 16 14:00:00 EDT 2008. I've tried all sort of combinations but still no luck. I can get it to work when I run the command from a shell script manually. Is it an environment setting issue?? Does anyone else have this setup? Thanks. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|