![]() |
Hello and Welcome from United States 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 |
| 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 |
| A simple find and replace without using any regex (bash) | srikanths | Shell Programming and Scripting | 2 | 03-18-2008 08:08 AM |
| Simple BASH script? | JayC89 | Shell Programming and Scripting | 16 | 10-02-2007 07:23 PM |
| Simple date and time calulation in BASH | ripat | Tips and Tutorials | 0 | 10-08-2006 06:15 AM |
| Simple bash for loop problem | kingdbag | Shell Programming and Scripting | 4 | 09-15-2006 01:00 AM |
| Simple Bash Script | xaphalanx | Shell Programming and Scripting | 3 | 12-21-2005 03:54 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi all
has anyone got a code snippet of how i can ftp a file automatically by running a simple bash script. I have 4 things IP address xx.xxx.xx.xx username=satnam domain = app.sample.ftp password= satnam_password Im not sure how to pull these all together to ftp a file? any ideas? |
|
||||
|
Please consider searching the FAQ. This gets asked at least once a week --
Code:
#/bin/ksh # $1 is the file name # usage: this_script <filename> IP_address="xx.xxx.xx.xx" username="satnam" domain = app.sample.ftp password= satnam_password echo " verbose open $IP_address USER $username $password put $1 bye " > ftp -n > ftp_$$.log |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|