Search Results

Search: Posts Made By: Salil Gupta
4,233
Posted By Salil Gupta
How to redirect output of a command to a variable during ftp mode?
Hi,

How can I redirect the output of a following command to a variable.

ftp myservername
ftp> user
(username) guptaji
331 Password required for guptaji.
Password:
ftp> size...
3,227
Posted By Salil Gupta
Below is the addition in the code as suggested by...
Below is the addition in the code as suggested by you :

CHK5=`grep -ic "No space left on device" $FTPCHK`
---
---
if [ $CHK1 -eq 2 ] || [ $CHK2 -eq 2 ] || [ $CHK1 -eq 1 -a $CHK2 -eq 1 ] || [...
3,227
Posted By Salil Gupta
Ftp process is successful , even when it...
Ftp process is successful , even when it partially ftp the file.
Below are the results of ftp command:

150 Opening data connection for home/remote/salil.dat (208354600 bytes)....
3,227
Posted By Salil Gupta
How to exit a script with error ?
Hi,

I have a script ABC which calls another script XYZ. Function of XYZ is to ftp a file from one server to another.

code for ABC:
#!/bin/ksh
PATH=/usr/bin

home/user/xyz "$@"

exit $?...
Showing results 1 to 4 of 4

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