Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
crontab help needed
Name: simpsoro Date: September 9, 2005 at 09:54:51 Pacific OS: 5.9 CPU/Ram: 8 GB
Comment:
I am having some trouble setting a command to execute in crontab.
I am doing a crontab -e "username" to edit the cron entries for the user I want. I know how to add in minutes, hours, month etc.
The problem I am having I guess is with the proper syntax of the command I want to execute.
I have a command that resides at: /global/web/web/web/generic/admin
The command I run manually from that directory daily is: ./batch.pl --backup -p '(^[A-Za-z0-9_])'
What would be the proper syntax to add that command to a cron job?
Name: nails Date: September 9, 2005 at 13:02:40 Pacific
Reply:
Why don't you create a script like this:
# mybackup.ss script # whatever your shell is #!/bin/ksh
export PATH=... # whatever your path is when you run from the command line cd /global/web/web/web/generic/admin ./batch.pl --backup -p '(^[A-Za-z0-9_])' # end script
0
Response Number 2
Name: nz_boy Date: September 18, 2005 at 15:13:36 Pacific
Reply:
here ya go man
* * * * * command to be executed - - - - - | | | | | | | | | +----- day of week ( 0 - 6) (Sunday=0) | | | +------- month (1 - 12) | | +--------- day of month (1 - 31) | +----------- hour (0 - 23) +------------- min (0 - 59)
Summary: You need to change the PATH variable in root's .profile ( /.profile). When you change it from the prompt you are only changing it in the current environment. As soon as you close the window, you termi...
Summary: Hello, Is there a way to reset a E450 to factory settings?, like jumpers or something. It's just that I've just been trying to install Solaris 8 on a Sun E450. I power up the E450 the machine goes th...
Summary: Hi all, this web site is doing great, thanks Computing.Net I need some help in starting any of the GUI tools on my windows desktop, bcz my console is connected serial (someone told me that I can't sta...