Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: read with redirected stdin
- X-seq: zsh-users 28623
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- Subject: Re: read with redirected stdin
- Date: Sat, 7 Jan 2023 18:52:34 +0100
- Archived-at: <https://zsh.org/users/28623>
- In-reply-to: <CAP+y1xC+bk5=Poax3-6eXWUCLgk3R08DcwmhqX30dTj4b3FY1g@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAP+y1xBo2fS--G8k+PbwEwJJx2d_s7ZxAJWrTNTJpE+MBB2x2w@mail.gmail.com> <CAN=4vMo5EJTiExmGxt2cxD2=_5PC0b=NCSEdZQRda+kvshg2=Q@mail.gmail.com> <CAP+y1xBGBDhmf3uQmxoTrkakTc_1=n54OtH3MC6eTdtsACJFiA@mail.gmail.com> <CAN=4vMqDbbQnimVEbhboTXNOvwrEC97Cjijc3_Q+_q0kUDfN6A@mail.gmail.com> <CAP+y1xC+bk5=Poax3-6eXWUCLgk3R08DcwmhqX30dTj4b3FY1g@mail.gmail.com>
On Sat, Jan 7, 2023 at 6:37 PM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
>
> I am still wondering, what can be a way to simulate the situation of a script launched by cron, where there is no tty and no other mean for read to connect to a terminal?
This should do it:
at now <<\END
echo hello from $0 >/tmp/log
END
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author