01-05-2011
shellscript on AIX to download file from windows to AIX
i require the shell script that is running on the AIX to download a file from Windows desktop to the location where the shell script resides onthe AIX system. I have used the below code: but it throwing the error as below.please help me at the earliest to resolve the issue.
error message :
--------------
$ /home/itaadmin/ITA_Test/current/ITAUpdateTicketJob.sh
ftp: connect: Connection refused
Not connected.
Not connected.
Not connected.
Not connected.
shell script program
---------------------
ftp -inv <ipadress> <<EOF
quote USER <username>
quote PASS <password>
ls
get C:\IAT\Doc forITA\709_LN_MAS.csv
bye
EOF
chmod 777 709_LN_MAS.csv
exit
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to get a free download of AIX, anyone have any good links?:) (1 Reply)
Discussion started by: bobjones2
1 Replies
2. AIX
Hi,
Is there any performance issue uploading a file
using IE from Windows client to AIX WAS server via HTTPS?
Before that, we were using HTTP protocol and everything run smooth
Once we change to HTTPS, we might hit the "HTTP 500 Internal server error"
Even though this does not happen all... (1 Reply)
Discussion started by: darontan
1 Replies
3. AIX
hello,
Does AIX 6.1 available for download?
Thanks,
Prashant. (2 Replies)
Discussion started by: prashantbhushan
2 Replies
4. AIX
How to transfer a directory from my windows machine to my AIX server??
Plz give me a detailed step wise solution...
Thanks in Advance.... (0 Replies)
Discussion started by: abhishek27
0 Replies
5. UNIX for Advanced & Expert Users
Hi,
When i run the code in solaris unix machine, the file from remote server is getting downloaded. but when i use the same code in IBM AIX remote machine, it is not running. It is saying "Erro during scp transfer." Below is the code.
Please give some resolution.
SCPClient client = new... (1 Reply)
Discussion started by: gravi2020
1 Replies
6. AIX
Hello,
Can someone please point to an easy document or steps how to export AIX file system /whatever to Windows O/S
Basically Windows should see this filesystem / directory and should be able to write in this filesystem / directory
Thanks (2 Replies)
Discussion started by: filosophizer
2 Replies
7. AIX
Dear All,
I am in need of your help again.
I want to copy a file from AIX to Windows. I was able do the same with WinSCP but not able to do with any commands.
I have tried ftp, scp and scp2 but nothing worked.
Can anyone suggest me a command on how to copy/move a file from AIX to... (9 Replies)
Discussion started by: tenderfoot
9 Replies
8. AIX
I have a FirstDoc application that integrates with SharePoint 2010.
As per the FirstDoc install guide, I need to generate the sharepoint_authentication properties file and place it on the server and the 2 Windows boxes that contain other components of the app.
The properties file I... (1 Reply)
Discussion started by: shoefiend
1 Replies
9. AIX
Hi
I'd like to copy file ( or directory ) from a window server to an unix server using scp command, something like this
scp -rp admin@10.0.99.99:C:\Documents and Settings\abc.txt /home/oracle/abc.txtI tried testing something like command above but nothing worked.
Somebody help !! Thank you (7 Replies)
Discussion started by: bobochacha29
7 Replies
10. AIX
I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users.
The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies
LEARN ABOUT REDHAT
adsl-connect
ADSL-CONNECT(8) System Manager's Manual ADSL-CONNECT(8)
NAME
adsl-connect - Shell script to manage a PPPoE link
SYNOPSIS
adsl-connect [config_file]
adsl-connect interface user [config_file]
DESCRIPTION
adsl-connect is a shell script which manages an ADSL connection using the Roaring Penguin user-space PPPoE client. If you omit con-
fig_file, the default file /etc/sysconfig/network-scripts/ifcfg-ppp0 is used. If you supply interface and user, then they override the
Ethernet interface and user-name settings in the configuration file.
Note that normally, you should not invoke adsl-connect directly. Instead, use adsl-start to bring up the ADSL connection.
adsl-connect first reads a configuration file. It then brings up a PPPoE connection. If the connection ever drops, a message is logged to
syslog, and adsl-connect re-establishes the connection. In addition, each time the connection is dropped or cannot be established, adsl-
connect executes the script /etc/ppp/adsl-lost if it exists and is executable.
The shell script adsl-stop causes adsl-connect to break out of its loop, bring the connection down, and exit.
TECHNICAL DETAILS
adsl-connect uses the following shell variables from the configuration file:
ETH The Ethernet interface connected to the ADSL modem (for example, eth0).
USER The ADSL user-id (for example, b1xxnxnx@sympatico.ca).
PIDFILE
A file in which to write the process-ID of the adsl-connect process (for example, /var/run/pppoe.pid). Two additional files ($PID-
FILE.pppd and $PIDFILE.pppoe) hold the process-ID's of the pppd and pppoe processes, respectively.
By using different configuration files with different PIDFILE settings, you can manage multiple PPPoE connections. Just specify the con-
figuration file as an argument to adsl-start and adsl-stop.
AUTHOR
adsl-connect was written by David F. Skoll <dfs@roaringpenguin.com>.
The pppoe home page is http://www.roaringpenguin.com/pppoe/.
SEE ALSO
pppoe(8), adsl-start(8), adsl-stop(8), pppd(8), pppoe.conf(5), adsl-setup(8), adsl-status(8), pppoe-sniff(8), pppoe-server(8), pppoe-
relay(8)
4th Berkeley Distribution 21 February 2000 ADSL-CONNECT(8)