|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
automate telnet/ftp session with csh?
Hi everyone,
Is it possible to write csh/sh script to do some automate telnet or ftp session?
__________________
Help me, help you, help others...
|
|
#2
|
|||
|
|||
|
Yes. i never tried telnet, but i did succesfully for ftp.
you can just pipe commands to it, e.g. Code:
( echo "open ftp.microsoft.com" echo "user ftp" echo "pass ftp@localhost" echo "get /pub/file" echo "bye" ) | ftp
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
||||
|
||||
|
Thank You
|
|
#4
|
||||
|
||||
|
A .netrc file will probably help you as well (for ftp, that is) -> http://www.mavetju.org/unix/netrc.php
//NoXcuz
__________________
UN*X is sexy! who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > automate telnet/ftp session with csh? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|