This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: piping problems with cron+4nt
- From: "Rafael Kitover" <caelum at debian dot org>
- To: "'cygwin-list'" <cygwin at cygwin dot com>
- Cc: "'Mironov, Leonid {PBG}'" <Leonid dot Mironov at intl dot pepsi dot com>
- Date: Wed, 18 Feb 2004 12:49:41 -0800
- Subject: RE: piping problems with cron+4nt
Perhaps try using the cygstart utility, in conjunction with --hide?
>-----Original Message-----
>From: Mironov, Leonid {PBG}
>Sent: Wednesday, February 18, 2004 12:59 AM
>Subject: piping problems with cron+4nt
>
>I've got a bunch of legacy 4NT batches I want to run from cygwin cron. When
>run from 4NT started from bash these batches work fine but when started from
>cron all lines with redirection and piping fail, e.g. when I run
>
> dir>q
>
>file 'q' is not created,
>
> dir|sort
>
>starts sort and it sits and waits for keyboard input. Also output from
>external programs is lost, e.g. if batch looks like
>
> echo zzz
> zip zzz *
> echo qqq
>
>and is run as
>
>0 2 * * * 4NT.EXE /c
>ibackup.btm>>h:\\backup\\bk.log
>
>file h:\backup\bk.log will look like
>
> zzz
> qqq
>
>zip output is missing, although zip archive is created.
>
>Any ideas?
>
>Win XP SP1, just refreshed cygwin and 4NT to latest bulds whith no effect at
>all.
>
>:), Leo
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/