![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| capture shell output in cron entry | steve72 | UNIX for Dummies Questions & Answers | 5 | 04-17-2008 08:00 AM |
| Help with script - run by cron | richo king | Shell Programming and Scripting | 2 | 03-05-2008 04:36 PM |
| Duplicate output from "cron" messages | loeng | SUN Solaris | 8 | 11-13-2005 08:25 PM |
| cron output = 0 bytes | mbattreall | SUN Solaris | 8 | 06-28-2005 01:58 PM |
| Cron Script Q | doublek321 | Shell Programming and Scripting | 2 | 07-06-2004 06:35 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Cron + Script = No Output?
I've got an *extremely* simple script I want to run every minute:
Code:
#!/bin/sh ping -c 1 192.168.1.20 > ~/onlinestatus.txt HOWEVER, when I put the command in my crontab as * * * * * status It doesn't work. Or, to be more precise, it creates an *empty* onlinestatus.txt file. I can use Cronnix (a GUI crontab editor) to force the command to run. When I do that, onlinestatus.txt *does* contain the ping output; it seems like it's only when cron runs it at the scheduled interval that the text file comes out empty. I'm *thoroughly* confused. |
| Forum Sponsor | ||
|
|
|
||||
|
Quote:
If it's something along the lines of "Destination unreachable", or something along those lines it's not a problem with your script. Post the contents of the output file. Cheers ZB |
||||
| Google The UNIX and Linux Forums |