Problem in FTP script with lcd command [message #468942] |
Mon, 02 August 2010 10:06 |
mleninbabugmailcom
Messages: 8 Registered: June 2010
|
Junior Member |
|
|
Hi Folks,
I have a problem with the lcd command in ftp script.I used lcd command like this lcd $GCCA_TOP/inbound/us,It is not recognizing that top. if i give the complete path of that top like lcd 'mvs/grc/ERPDEV/inbound/us'
then it will work.
I dont know why it is not working for the application top.
For that i tried with this work around like i use a cut function to extract that $GCCA_TOP and i assign it to a variable (Bcoz iam passing this path to lcd command as a parameter) and i tried to print that variable but is printing $GCCA_TOP only it is not extracting the complete path of that top.
If i hardcoded top to a varaiable like v1=$GCCA_TOP then it printing the complete path.
I dont know why the cut function behaves like that,Could you please help me out...
Thanks,
Lenin
|
|
|
|
Problem in FTP script with lcd command [message #468950 is a reply to message #468942] |
Mon, 02 August 2010 10:46 |
mleninbabugmailcom
Messages: 8 Registered: June 2010
|
Junior Member |
|
|
Hi Folks,
I have a problem with the lcd command in ftp script.I used lcd command like this lcd $GCCA_TOP/inbound/us,It is not recognizing that top. if i give the complete path of that top like lcd 'mvs/grc/ERPDEV/inbound/us'
then it will work.
I dont know why it is not working for the application top.
For that i tried with this work around like i use a cut function to extract that $GCCA_TOP and i assign it to a variable (Bcoz iam passing this path to lcd command as a parameter) and i tried to print that variable but is printing $GCCA_TOP only it is not extracting the complete path of that top.
If i hardcoded top to a varaiable like v1=$GCCA_TOP then it printing the complete path.
I dont know why the cut function behaves like that,Could you please help me out...
Thanks,
Lenin
|
|
|
|