CRON jobs
Moderator: General Moderators
- cheatboy00
- Forum Contributor
- Posts: 151
- Joined: Sat Jun 29, 2002 10:36 am
- Location: canada
- Contact:
CRON jobs
I was wondering where i could get more info on these.... i have the capability on my site but i dont know how to use them.....
- cheatboy00
- Forum Contributor
- Posts: 151
- Joined: Sat Jun 29, 2002 10:36 am
- Location: canada
- Contact:
Well in the *nix world extensions tend not to matter. So yes, cron scripts don't need to have any paticular extension. What will matter is that the script is executeable (chmod u+x, or similar) and that the computer can figure out how to run the file. If its a binary then its straightforward, if its a script file the first line of the file will tell the computer what program to use to interpret the file.
This first line is the
#!/bin/sh or #!/usr/bin/perl or #!/usr/bin/php for (cgi version)
of course people commonly give their scripts .sh, .pl or .php extensions anyways, but its not required and the practice is frowned upon by some.
This first line is the
#!/bin/sh or #!/usr/bin/perl or #!/usr/bin/php for (cgi version)
of course people commonly give their scripts .sh, .pl or .php extensions anyways, but its not required and the practice is frowned upon by some.
- gite_ashish
- Forum Contributor
- Posts: 118
- Joined: Sat Aug 31, 2002 11:38 am
- Location: India