![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| re-associating 2 HP UNIX servers | RarisRSX | UNIX for Dummies Questions & Answers | 0 | 09-28-2007 12:26 PM |
| Microsoft servers Vs. Unix/Linux | tayyabq8 | What's on Your Mind? | 2 | 08-25-2007 04:45 PM |
| Reboot of Unix servers - recommended? | polly013 | SUN Solaris | 13 | 01-29-2007 07:00 AM |
| Is ncftp possible between two SCO Unix servers? | hrishi10a | SCO | 0 | 09-04-2006 06:39 AM |
| Bouncing Unix Servers | mhossien | HP-UX | 17 | 03-30-2006 04:31 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi
I have server A and server B. On server B the directory is called /tmp/hmp On server A I want to get the files on server B:/tmp/hmp via FTP. After I have got the files via FTP I have to delete them. In the script below I'm affraid of that I delete files before I get them by ftp. #!/bin/bash ftp -in server B<<END_SCRIPT quote USER abc quote PASS XXXX bin prompt off cd /tmp/hmp --folder on ftp lcd /production/hmp --folder on local drive mget *.* mdel *.* bye END_SCRIPT |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|