![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can any body tell me. | sackNumchai | Linux | 3 | 05-05-2008 09:28 PM |
| can any body give some idea on this.. | sapan123 | UNIX for Advanced & Expert Users | 1 | 10-21-2007 09:10 AM |
| how i prepare a c++ code(c code) for implementing my own protocol format | amitpansuria | High Level Programming | 1 | 09-06-2007 08:09 PM |
| can any body correct the code | vivekanandarpat | UNIX for Advanced & Expert Users | 2 | 09-16-2005 06:24 AM |
| How to get åäö in e-mail message body | de98luto | UNIX for Dummies Questions & Answers | 4 | 07-10-2002 02:35 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
#!/bin/ksh
LOG_DATE=`date +%Y%m` export LOG_DATE cd D:/Informatica/Informatica_share/SrcFiles/l # mv SITE_ACTIVITY${LOG_DATE}*.CSV D:/Informatica/Informatica_share/SrcFiles/SITE_ACTIVITY${LOG_DATE}*.CSV # mv SITE_ACTIVITY20050914114546.CSV D:/Informatica/Informatica_share/SrcFiles/SITE_ACTIVITY20050914114546.CSV mv SITE_ACTIVITY${LOG_DATE}*.CSV D:/Informatica/Informatica_share/SrcFiles/SITE_ACTIVITY${LOG_DATE}*'.CSV' ftp -inv <<EOF open xyz.eng.abc.com user hik klm cd /opt/edocs/AV # mget SITE_ACTIVITY${LOG_DATE}*.CSV mget SITE_ACTIVITY${LOG_DATE}*.* # mget SITE_ACTIVITY20050914114546.CSV bye EOF My question is when I run the script with the file name specified in mget command it is able to FTP the file from unix to NT If I substitute the variable in the file for the mget command it dosent ftp the file I am invoking this script in Informatica Please help me if any thing wrong in the script Thank you ---vivek |
| Forum Sponsor | ||
|
|
|
|||
|
But in the code I have
mget SITE_ACTIVITY$LOG_DATE*.CSV This should work right it should return SITE_ACTIVITY20050914114546.CSV right But It not getting the value when I substitute whole file name then It recognizes please help me Thank you ---vivek |
|
|||
|
Quote:
Code:
mget SITE_ACTIVITY${LOG_DATE}*.CSV
|