The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSH problems ysk UNIX for Advanced & Expert Users 1 07-19-2007 05:16 AM
Problems AIX and SAN. fjgonzalez AIX 4 07-18-2007 05:15 PM
Problems with Last By_Jam UNIX for Advanced & Expert Users 3 09-29-2006 03:12 AM
Few problems vivekshankar UNIX for Dummies Questions & Answers 3 05-21-2005 12:26 PM
'make' problems (compliation problems?) xyyz UNIX for Advanced & Expert Users 5 11-05-2001 10:47 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-29-2008
subin_bala subin_bala is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 57
Problems with ftp

Hi all,

I am taking log files every 15 min from remotemachine.
My code is ;
FRONTEND_HOME=/home/hai/jjsjs/Frontend_log
cd /dsd/sds/sdsds/FrontEnd
ftp -n 10.22.144.32 << END_INPUT >> /root/scripts/tracking/ftp_frontend.log 2>&1
user hai hai
asc
cd $FRONTEND_HOME
prompt
mget logger.log.*
bye
END_INPUT


But i need to move the logfiles to other directory(from remotemachine) after my "mget" command .. i tried mv command but its not working ... Help will be highly appreciated..

Thanks
Subin
  #2 (permalink)  
Old 04-29-2008
subin_bala subin_bala is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 57
If move will not work in ftp , can anyone suggest any other alternatives..
  #3 (permalink)  
Old 08-04-2008
gudsa gudsa is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 3
Smile mv is not working!!!

hey man try lcd command just before the mget command....like u want to move ur files to c:\desired_path then just add "lcd /c:/desired_path" before mget commnad and plz let me know the results.....
  #4 (permalink)  
Old 08-04-2008
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
Yes to run system command you can either use ! mark and command name like this,
Code:
 !cd /usr/
  #5 (permalink)  
Old 08-04-2008
gudsa gudsa is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 3
thanks!!

i was aware from this anyway thanks!!!c i hav a problem i need to use `ls -lrt | cut -c ` command at ftp server but as u know cut is not working at ftp server so can u sugess ant alternative for same stuff??? thanks againg and happyf riendship day.,
Sponsored Links
Closed Thread

Bookmarks

Tags
command, ftp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0