[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Cron and perl scripts
- From: Gustav Schaffter <gustav schaffter com>
- To: redhat-list redhat com
- Subject: Re: Cron and perl scripts
- Date: Wed, 01 Sep 1999 14:15:23 +0200
Some (helpful?) ideas.
Do you get any mail output from cron? Do some print statements in your
script, and cron should email you those. (That is, at least under SunOS
it works this way.)
If your crontab contains the command /usr/bin/script then the script
will run in /usr/bin but if it contains just the command script, then it
will be launched in / . This will affect any relative paths in your
script.
Maybe you should print out where the script is running from within the
script. Or, make sure that the script always unlinks files using
absolute paths.
Gustav
Tomas Tikovsky wrote:
>
> hi
>
> I wrote a perl script that work fine being run from the command line.
> When i have cron run the script it, it doesn't delete files that i wont.
> i tried to use unlink command and `rm`.
> Than i deleted aliases from all rc's in /root directory like "alias
> rm=rm -i"
>
> What i'm doing wrong?
>
> Thanks Tom
>
> --
> To unsubscribe: mail redhat-list-request redhat com with "unsubscribe"
> as the Subject.
--
JFK, assassination plot, sex, money laundering, blackmail, hacking,
security, encryption, bomb, CIA, NSA, KGB, Russia, Lockerbie, terrorism,
child abuse, drug dealing, espionage.
pgp = Pretty Good Privacy.
http://www.schaffter.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]