|
Hello. I've tried this, and now I get my error.log file and also the screen
displaying the error message. The log file actually contains this:
Usage: cp [-fhip] [-r|-R] [-E{force|ignore|warn}] [--] src target
or: cp [-fhip] [-r|-R] [-E{force|ignore|warn}] [--] src1 ... srcN
directory
How can I stop the screen from appearing? I'm using QP2SHELL to do this,
and I did not expect a terminal window to open at all.
I've also tried the -B and -q options on the SCP command (batch mode and
'quiet' mode) with no luck.
Thanks,
Mark
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of shalom@xxxxxxxxxx
Sent: Thursday, September 01, 2005 9:18 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Pase environment from a batch cl
You should redirect the error messages to a file.
Since a normal scp connection does not produce unwanted messages,
you redirect only stderr by using the following syntax:
scp [options] source destination 2> error.log
Shalom Carmel
-------------
www.venera.com - Exposing iSeries insecurity
----- Original Message -----
> date: Thu, 1 Sep 2005 08:20:57 -0700
> from: Mark Keller
> subject: Pase environment from a batch cl
>
> Hello. I'm trying to automate an SCP connection using the PASE
environment.
> My problem is that I do not want the terminal to ever come up. I would
> rather log any messages to a file or catch them in my program. When I
have
> a file to receive, this works great. The transfer is completed entirely
in
> batch. But if the file I'm trying to transfer does not exist, then I have
> the terminal window pop up with an error message, requiring user
> intervention.
>
> Any suggestions or tips for me?
>
> Thanks!
> Mark
>
>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.