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 > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need help with shellscript jigarlakhani Shell Programming and Scripting 2 11-22-2007 08:28 AM
shellscript problem ravi raj kumar UNIX for Advanced & Expert Users 1 09-07-2007 02:05 AM
Shellscript for MQSeries ram2s2001 High Level Programming 0 12-12-2005 12:48 AM
Another shellscript question jigarlakhani Shell Programming and Scripting 18 11-30-2005 10:50 AM
Create Shellscript newuser100 Shell Programming and Scripting 1 11-29-2001 09:46 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-11-2004
ggowrish ggowrish is offline
Registered User
  
 

Join Date: May 2004
Posts: 3
Question ftp in Shellscript

Can I do something like this from a shellscript ?:

ftp 12.34.56.78 <<!
username
password
put a.c
bye
!

It does not go through as the login fails.
Is there any alternative to do the above requirement?

Thanks in advance.
Gowrish
  #2 (permalink)  
Old 06-11-2004
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,407
man netrc
  #3 (permalink)  
Old 06-11-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Please navigate:
Our Home Page -> Answers to Frequently Asked Questions -> Automate FTP / Scripting FTP Transfers
  #4 (permalink)  
Old 06-11-2004
ggowrish ggowrish is offline
Registered User
  
 

Join Date: May 2004
Posts: 3
ftp in shellscript

I did not want to use netrc.

I have found a solution as below:

ftp -n 12.34.56.78 << !
user username password
put a.c
bye
!

This works. Thanks anyways.
Closed Thread

Bookmarks

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 11:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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