Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cronjob on Irix 6.2

Status
Not open for further replies.

uncletom

Technical User
Nov 21, 2002
8
0
0
DE
Hi,
I want to create a cron job which checks every minute of every hour if a file called "plotf" exists or not. If that file exists, a process called "plot_file" should start, otherwise nothing should happen.
Who knows the syntax for the line in the cronfile:

0-59 0-23 * * * if ???? Then /plot_file; fi

or something like that ??
Thnx.
[COLOR=#99000]Uncle[/color]Tom
 
I've used something like this:
* * * * * if test -w /plotf; then plot_file; fi

But I prefer to use a script that starts a plot process after sending the plot file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top