What is the different between cron executing and shell execution?
From: h.wulff (zuhause_at_aol.com)
Date: 01/30/05
- Previous message: Siward de Groot: "[patch] Re: Bug#204363: cleanlinks breaks xterm and apt"
- Next in thread: Alvin Oga: "Re: What is the different between cron executing and shell execution?"
- Reply: Alvin Oga: "Re: What is the different between cron executing and shell execution?"
- Reply: Alban Browaeys: "Re: What is the different between cron executing and shell execution?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: debian-user@lists.debian.org Date: Sun, 30 Jan 2005 13:46:33 +0100
Hello,
I have a bash script which runs perfectly in the shell. But when cron
executes the same script it causes errors.
if ( ! $SAV_INSTALL_PRG $SAV_INSTALL_OPTIONS 1>/dev/null )
then
echo "Unable to install the new engine"
echo "Command: \"$SAV_INSTALL_PRG $SAV_INSTALL_OPTIONS\""
LOG2SYSLOG "ERROR: Unable to install the new engine."
else
cd $TMP
/bin/rm -rf $TMP/$TMP_SAV_INSTALL
/bin/rm -f $IDE_DIR/*.ide
LOG2SYSLOG "Successfully installed new sophos antivirus engine"
fi
All variables are defined in the header of this script.
and LOG2SYSLOG looks like this:
LOG2SYSLOG()
{
MY_NAME=`basename $0`
MY_PID=`pidof -x $MY_NAME`
logger -t "$MY_NAME[$MY_PID]" $1
}
The error message is this:
Unable to install the new engine
Command: "/tmp/sav-install/install.sh -ni"
logger: invalid option -- n
usage: logger [-is] [-f file] [-p pri] [-t tag] [-u socket] [ message
... ]
I never call logger with a "n" option rather I call $SAV_INSTALL_PRG
with an "n" option.
I dont see why logger get the "n" option...
Does anyone see the error?
Thank you for your efforts.
-- h.wulff [dont send me an email] -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Siward de Groot: "[patch] Re: Bug#204363: cleanlinks breaks xterm and apt"
- Next in thread: Alvin Oga: "Re: What is the different between cron executing and shell execution?"
- Reply: Alvin Oga: "Re: What is the different between cron executing and shell execution?"
- Reply: Alban Browaeys: "Re: What is the different between cron executing and shell execution?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: [PHP] Passing vars w/refresh w/register globals off?
... Dont know why you want to, ... This wasy all you need is pass the ID within
the browser. ... > switch for routing to desired pages according to form input
data. ... I'm thinking the old script would be php3 and the new ... (php.general) - Re: Looking for maybe impossible script?
... The admin rights on the laptops were ... Even if i could get a script
that would notify me of such ... I just dont have the time. ... aide fix and tracing
them down to the port an then shuting it off. ... (microsoft.public.windows.server.scripting) - Re: Logs remote ip when connects to exchange, ftp, or remotly to s
... Thanks for your help I wont argue anymore. ... I appreciate everything now I
am looking for a script to extract ... >> server through remote desktop on
the desktop of his server it showed the ... I just dont know how to make this script see
I am going to ... (microsoft.public.windows.server.scripting) - Re: [Full-disclosure] reduction of brute force login attempts via SSHthrough iptables --
... Anyhow its no problem at all to modify, so if you dont like it, just dont use it. ...
on a lame script like this as long as it WORKS and is not insecure. ... echo "~
sorting out ip by ip" ... # echo "not enough failed logins, probably no attack from: ...
(Full-Disclosure) - Re: Possible New Exploit???
... A court has sentenced a man to life in jail for the bombing of a ...
> I dont know what MS group to post this on but, here is some VB script ... (microsoft.public.security.virus)