![]() |
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 |
| capture shell output in cron entry | steve72 | UNIX for Dummies Questions & Answers | 5 | 04-17-2008 11:00 AM |
| Help with script - run by cron | richo king | Shell Programming and Scripting | 2 | 03-05-2008 08:36 PM |
| Duplicate output from "cron" messages | loeng | SUN Solaris | 8 | 11-14-2005 12:25 AM |
| cron output = 0 bytes | mbattreall | SUN Solaris | 8 | 06-28-2005 04:58 PM |
| Cron Script Q | doublek321 | Shell Programming and Scripting | 2 | 07-06-2004 09:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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. If it didn't work *at all*, I could deal with it, but this behavior doesn't seem to make any sense. Any suggestions? |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|