bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

redirect to STDERR problem


From: Christian Teufel
Subject: redirect to STDERR problem
Date: Sat, 14 Jul 2001 11:05:15 +0200

Hello

I wrote the following small perl-script to transfer files between to
machines using scp.

...
$COMMAND = "scp user\@www.host1.de:/foo/foofile . 2> .myTMP";
$RETCODE = system($COMMAND);
...

I wanted to redirect scp errors (file not found, etc.) to STDERR via the
2> command.
Everything worked fine on my system (SuSE Linux 6.3, perl 5.6.0, bash
2.05.0(1)).
Then I executed my small proggie on an other system (SuSE Linux 6.1,
perl 5.005_02, bash 2.02.1(1)) and oooops, the password prompt was
redirected to STDERR. I'm using bash-shell on both systems and I don't
think it's a perl problem.

Any suggestions?

Have a nice weekend and thank you.

Yours

Christian Teufel

P.S. Hope my terrible english makes sense to you!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]