help-bash
[Top][All Lists]
Advanced

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

Re: non working code .. loop ends after one


From: Chet Ramey
Subject: Re: non working code .. loop ends after one
Date: Wed, 1 Mar 2023 19:11:52 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 3/1/23 4:11 PM, alex xmb ratchev wrote:
hello ,
im at a scp file list script
it had few typos , then it began to work
but only one line outta the file
then nothing , just exit ..

Without looking at your script, 99% of problems of this type are the
result of ssh/scp consuming all of stdin, leaving nothing for the rest
of the script. Look at the -n option.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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