The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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 Shell Programming and Scripting 6 09-15-2005 11:16 AM
How to get åäö in e-mail message body de98luto UNIX for Dummies Questions & Answers 4 07-10-2002 02:35 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 09-16-2005
Registered User
 

Join Date: Apr 2005
Posts: 6
can any body correct the code

#!/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
Reply With Quote
Forum Sponsor
  #2  
Old 09-16-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,683
Can any body correct the code .

You are breaking the rules.

Edit.

Rules

(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.

Last edited by vino; 09-16-2005 at 06:32 AM.
Reply With Quote
  #3  
Old 09-16-2005
Registered User
 

Join Date: Apr 2005
Posts: 6
What is that rule
Thank you

So How can I delete this thread
Thank you

Last edited by vivekanandarpat; 09-16-2005 at 06:57 AM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0