From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7261 invoked from network); 6 Feb 1997 13:26:09 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 6 Feb 1997 13:26:09 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id IAA10566; Thu, 6 Feb 1997 08:12:10 -0500 (EST) Resent-Date: Thu, 6 Feb 1997 07:47:00 -0500 (EST) Sender: hniksic@public.srce.hr To: jarausch@igpm.rwth-aachen.de (Helmut Jarausch) Cc: zsh-users@math.gatech.edu Subject: Re: Is there any magic to use ZSH in cron scripts ? References: X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/ X-Attribution: Hrv X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y" From: Hrvoje Niksic Date: 06 Feb 1997 13:46:31 +0100 In-Reply-To: jarausch@igpm.rwth-aachen.de's message of Thu, 6 Feb 1997 11:50:53 +0100 Message-ID: X-Mailer: Gnus v5.4.11/XEmacs 19.14 Resent-Message-ID: <"TGdFJ1.0.MS2.3BT-o"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/673 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu jarausch@igpm.rwth-aachen.de (Helmut Jarausch) writes: > any script executed by cron is executed by the Bourne shell (on my > machine, I don't try to replace /bin/sh by zsh) Well, you can use "zsh scriptname" in your crontab, and zsh will be invoked. Or, alternatively... > #!/bin/zsh > is not recognized when a script is executed by /bin/sh. > The only work around for me is > exec /bin/zsh << 'EOF' [...] > - the parameters to the script are lost > Is there any magic available? Try this: exec /bin/zsh $0 "$@" It should solve your problems. -- Hrvoje Niksic | Student at FER Zagreb, Croatia --------------------------------+-------------------------------- I'm sure they'll listen to reason! -- Neal Stevenson, _Snow Crash_