Search Results

Search: Posts Made By: Khan28
1,447
Posted By RavinderSingh13
Hello Khan28, Could you please try following...
Hello Khan28,

Could you please try following and let me know if this helps you(haven't tested it though).

while read path
do
find $path -type f -size 0 -print
done < "Input_file"
...
1,447
Posted By Don Cragun
It looks like the editor you used to create...
It looks like the editor you used to create pathfile.txt was set up to use DOS (<carriage-return><newline> character pair) line terminators instead of UNIX (<newline> single character) line...
4,675
Posted By Don Cragun
You could try something like: if sftp...
You could try something like:
if sftp remote_host <<-EOF
cd apl/download
get DATFILE.DAT
bye
EOF
then echo 'download successful'
else echo 'download failed'
fi
4,675
Posted By jgt
I would check for the presence of datfile.dat on...
I would check for the presence of datfile.dat on the local system after the sftp session is complete.

rm datfile.dat
sftp remote_host
>get datfile.dat
>quit
if [ ! -r datfile.dat ]
then
...
4,469
Posted By Don Cragun
Taking my earlier suggestion and converting it to...
Taking my earlier suggestion and converting it to use a file instead of a pipeline:
USER1=ftp
TARGETHOST1=XX.XX.XX.XX
printf '%s\n' 'lcd /Z02/apps/output/UAT/CMUP/incoming' \
'cd...
4,469
Posted By RudiC
If working in a recent shell, you may want to...
If working in a recent shell, you may want to lookup "Here Documents" that offer another way to redirect stdin.
4,469
Posted By RudiC
sftp reads its commands from stdin, no matter if...
sftp reads its commands from stdin, no matter if this is filled from the terminal, a pipe that forwards another program's output, or a redirection ("<") that opens a file to read from. But - it has...
4,469
Posted By Don Cragun
The redirection command < pathname feeds the...
The redirection command < pathname feeds the contents of the file whose name is pathname into the standard of the command specified by command.

It would seem that you want something more like:...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 07:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy