From: Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr>
To: zsh-users@sunsite.auc.dk
Subject: probable problem with redirections and screen
Date: Wed, 14 Apr 1999 13:35:11 +0200 [thread overview]
Message-ID: <19990414133510.A18459@vin.ens-lyon.fr> (raw)
I start a perl script, say my_script, with the following command line:
nice -2 zsh -c "./my_script 2>&1 2> secstep.out"
to redirect the error output to both the terminal and secstep.out.
When I did this in an rxvt, there was no problem. Now, I start the
script from screen, and sometimes the script dies silently. In the
terminal, I only have the normal output (to stdout) of the script
and the following line:
nice -2 zsh -c 942.81s user 10.38s system 2% cpu 10:30:06.84 total
but no error message, and no non-zero exit status (when I type
"nice -2 zsh -c false", "zsh: exit 1 nice -2 zsh -c false"
is displayed; with my script, there's nothing). So, I don't think
this comes from Perl. Perhaps zsh (the one that starts my_script)
dies before my_script?
The file secstep.out is generally empty. I think the problem occurs
when the script wants to write something to stderr (but sometimes,
writing to stderr doesn't kill the process).
Is there anything I shouldn't do concerning MULTIOS redirections
when I use screen? Or is there a bug in zsh (I use zsh 3.1.5)?
TIA for any information,
--
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: <http://www.vinc17.org/> or <http://www.ens-lyon.fr/~vlefevre/> - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathematiques et Logiques, TETRHEX, Faits divers insolites, etc.
reply other threads:[~1999-04-14 11:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=19990414133510.A18459@vin.ens-lyon.fr \
--to=vincent.lefevre@ens-lyon.fr \
--cc=zsh-users@sunsite.auc.dk \
/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).