PDA

View Full Version : create new files with cron job (cgiwrap or suexec?)


Klausu
10-9-06, 08:50 AM
Hello,

I want to start a crown job each night which should creates new files in a directory (chmod 755). Normally the crown job starts the crown job (a Perl script) as default user, which have no permission to create files. How to start the Perl script under my account user name?
Shall I use cgiwrap or suexec? How to use cgiwrap or suexec?

Klaus

HalfaBee
10-10-06, 08:19 AM
Use the http method of calling the script with the new scheduled jobs rather than the server side method.
This should force perl to run as your user.

extras
10-10-06, 06:32 PM
CGI-BIN, SSI, .htaccess, Cronjobs v

http://www.powweb.com/powweb/hosting.bml


Although the new PowWeb/Endurance continue to advertise that they have "cronjob",
it's not true.

What they have is "a scheduled task" and it doesn't come close to "crown" job.
Rather, it's more like "clown" job. :)

When a normal host advertises something as a cronjob, it runs with our user id,
and we can set it to run in more flexible ways (with real cron time format).


I think I told them to correct misleading specs, including "error" log and also
"real time" logging.
We don't have normal error_log, here.
Although the logging is done "realtime", we don't have realtime access to the log.

Small details, but they should correct them, IMO.

HalfaBee
10-10-06, 07:41 PM
LOL @ extras


I dont understand why he is holding back ;)

Klausu
10-11-06, 04:36 AM
Thank you for your answers.

Use the http method of calling the script with the new scheduled jobs rather than the server side method.
This should force perl to run as your user.

I can select "URL to Access" and "Command to Run" on the "Scheduled Jobs" page. Where is the "http method"?

tbonekkt
10-11-06, 09:19 AM
URL to Access is the http method.