Sponsored Content
Full Discussion: Unattended ftp to Solaris
Operating Systems Linux Unattended ftp to Solaris Post 51397 by bubba112557 on Wednesday 19th of May 2004 09:59:18 AM
Old 05-19-2004
Unattended ftp to Solaris

I have a Red Hat 9 server which I am attempting to ftp a file to
a Solaris 8 server using a shell script to perform an unattended ftp. I have the following script setup to run:

#!/bin/sh
#
cd /tmp
ftp -v 192.20.20.5 << EOF 2>&1
cd /tmp
put gatherstats
bye
EOF

I created the .netrc file on the Linux server to access the Solaris server. When I run my shell script it hangs on the Linux server. Any help would be appreciated.

Thanks,

Mike
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP script to FTP file to UNIX - Solaris

Hello, A couple of times per week, i receive emails notifications when files are available for processing. Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies

2. Solaris

unattended single user mode patching

hello, i was certain i saw something on this earlier. but does anyone have any links, tips, or scripts they can share on ho to install and schedule single user patches remotely? (2 Replies)
Discussion started by: darkog
2 Replies

3. Shell Programming and Scripting

Running scripts unattended

Hi guys just wondering how i could make one of my scripts run unattended without the use of cron? (3 Replies)
Discussion started by: musicmancanora
3 Replies

4. UNIX for Advanced & Expert Users

Unattended disk image deployment?

Hi I need a system that allows a PC to PXE boot and then fully unattended deploy a diskimage created from a Linux system with identical hardware and then reboot when finished. I have been looking around but have not found a tool that is capable of doing this without too many bells and whistles,... (2 Replies)
Discussion started by: smith0083
2 Replies

5. Red Hat

Cisco UC Unattended installation

Hi All, Goal: Unattended installation of Cisco UC apps (i.e. Cisco Unified Communications Manager). Cisco UC uses RHEL as its OS. Challenge: Bypass the "Proceed with Install" prompt (see attached image named CUCM.png). I did research about Kickstart but I couldn' find the answer. I have also... (3 Replies)
Discussion started by: linuxn00b1
3 Replies

6. AIX

Unattended installation of AIX 7.2

While doing an unattended installation of AIX 7.2 -- 002 I noticed this error when I was passing by the screen Filesets processed: 428 of 761 System Installation Time: 1 hr 12 mins Tasks Complete: 60% installp: APPLYING software for: Java5.sdk 5.0.0.620 Restoring... (3 Replies)
Discussion started by: filosophizer
3 Replies
NETRC(5)						      BSD File Formats Manual							  NETRC(5)

NAME
netrc -- user configuration for ftp SYNOPSIS
~/.netrc DESCRIPTION
This file contains configuration and autologin information for the File Transfer Protocol client ftp(1). The .netrc file contains login and initialization information used by the auto-login process. It resides in the user's home directory. The following tokens are recognized; they may be separated by spaces, tabs, or new-lines: machine name Identify a remote machine name. The auto-login process searches the .netrc file for a machine token that matches the remote machine specified on the ftp command line or as an open command argument. Once a match is made, the subsequent .netrc tokens are processed, stopping when the end of file is reached or another machine or a default token is encountered. default This is the same as machine name except that default matches any name. There can be only one default token, and it must be after all machine tokens. This is normally used as: default login anonymous password user@site thereby giving the user automatic anonymous ftp login to machines not specified in .netrc. This can be overridden by using the -n flag to disable auto-login. login name Identify a user on the remote machine. If this token is present, the auto-login process will initiate a login using the specified name. password string Supply a password. If this token is present, the auto-login process will supply the specified string if the remote server requires a password as part of the login process. Note that if this token is present in the .netrc file for any user other than anonymous, ftp will abort the auto-login process if the .netrc is readable by anyone besides the user. account string Supply an additional account password. If this token is present, the auto-login process will supply the specified string if the remote server requires an additional account password, or the auto-login process will initiate an ACCT command if it does not. macdef name Define a macro. This token functions like the ftp macdef command functions. A macro is defined with the specified name; its con- tents begin with the next .netrc line and continue until a null line (consecutive new-line characters) is encountered. If a macro named init is defined, it is automatically executed as the last step in the auto-login process. SEE ALSO
ftp(1), ftpd(8) Linux NetKit (0.17) September 23, 1997 Linux NetKit (0.17)
All times are GMT -4. The time now is 03:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy