From: Hrvoje Niksic <hniksic@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 ?
Date: 06 Feb 1997 13:46:31 +0100 [thread overview]
Message-ID: <kigsp3aw194.fsf@jagor.srce.hr> (raw)
In-Reply-To: jarausch@igpm.rwth-aachen.de's message of Thu, 6 Feb 1997 11:50:53 +0100
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 <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
I'm sure they'll listen to reason! -- Neal Stevenson, _Snow Crash_
next prev parent reply other threads:[~1997-02-06 13:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-06 10:50 Helmut Jarausch
1997-02-06 12:46 ` Hrvoje Niksic [this message]
1997-02-06 12:51 ` Zefram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=kigsp3aw194.fsf@jagor.srce.hr \
--to=hniksic@srce.hr \
--cc=jarausch@igpm.rwth-aachen.de \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).