![]() |
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with running the tar command using system() call in C | vsanjit | High Level Programming | 5 | 11-10-2008 07:17 PM |
| command << EOF(dont want to call other script) | user_prady | Shell Programming and Scripting | 4 | 11-15-2007 04:19 AM |
| How to call Linux command in C | krishna_sicsr | High Level Programming | 6 | 09-14-2007 07:00 AM |
| How to call a Linux command in C prog. | krishna_sicsr | Shell Programming and Scripting | 1 | 04-08-2007 04:53 AM |
| how can call perl script as command? | umen | UNIX for Dummies Questions & Answers | 1 | 10-14-2005 10:43 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Can rsh command be used to call a bat file
I have a .bat file on windows, which converts a .xls file into .csv file and using a ksh script i would usually FTP this .csv file...
Now i want to trigger this .bat form my ksh script. can i use rsh command in my FTP to run .bat file on windows and then ftp the generated .csv file...is this possibel.. If so please explain me... Thanks.. |
|
||||
|
I dont know when i told my team lead she said no
Ok can i use telent in between ftp to start something on windoes like this telnet C:\test\bhagya.bat in my FTP will this start my bat file to work and give me the rewuired out put... |
|
||||
|
Yes... this is my FTP
Code:
FTP_FILE_NAME="LTC*.csv"
FTP_DIR_NAME="ProviderReject"
ONE_MORE="SI_Notification_Reports"
PRESENT_DIR=`pwd`
FTP_STATS="${LOG_DIR}/FTP_Provider_Rej.stats"
FTP_ERR="${LOG_DIR}/FTP_Provider_Rej.error"
ftp -nv ${SI_NOTIFICATION_FTP_IP} > ${FTP_STATS} 2> ${FTP_ERR} <<EOF
user ${SI_NOTIFICATION_FTP_USER} ${SI_NOTIFICATION_FTP_PASSWORD}
cd ${ONE_MORE}
cd ${FTP_DIR_NAME}
bin
lcd ${DATA_DIR}
pwd
dir
prompt off
mget ${FTP_FILE_NAME}
mdelete ${FTP_FILE_NAME}
prompt on
dir
EOF
if [[ -f $FTP_ERR ]] && [[ ! -s $FTP_ERR ]]
then
rm -f ${FTP_ERR}
fi
cd ${ONE_MORE} cd ${FTP_DIR_NAME} Here telenet statement to run bat file bin lcd ${DATA_DIR} |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|