Hi,
We have a requirement to transfer(FTP) files created in a particular directory (In Solaris) to NT machine. Also this process neeeds to be automated.
I belive a command MAIL in UNIX could be used to find new files created in a directory, but this just sends the file list to the logged user.... (5 Replies)
I'm slowly (very slowly) learning csh and the UNIX underpinnings of Mac OS X so please bear with me.
I want to be able to ftp a file to my personal webspace at work. I can do this by manually going in and doing
ftp host.domain.com
user:
password:
cd /folder
put myfile
etc..
I'd like... (4 Replies)
Hi,
Is is possible when ftp script disconnect by remote server and it can restart to tranfer (such as restart in 10 mins, etc)?
Please help!!!! (1 Reply)
Hi
i need to FTP files from windows to unix(sun) machine using script. what are the scripts commands i need to use to transfer files
Thanks (2 Replies)
Hi,
is it possible to automatically run a script (bash) when an event occurs?
I mean, let's say that I (or one of my users) plug in a flash memory (USB) ... is it possible to run a script every time I do this action (let's say to log user, date and other infos on a file)?
Thanks!
Bye... (5 Replies)
Guy's
We have two AIX servers
Server1 and Server2
and we have created user1 in Server1 and Server2 ...
and .netrc file was confiured under /home/user1 with the below line
machine server2 login user1 password abc1234567
-rw------- 1 user1 staff 159 Sep 28 2004 .netrc
... (7 Replies)
Hi
I am looking for automatic FTP script from UNIX to UNIX servers. I have two problems that anyone may help:
1- The directory where the files have to be FTPed is varied, where it is identified by the date of today (YYYYMMDD)
2- the files come every 15 minutes and named by the time with form... (2 Replies)
Hey Guys,
i need to download files from a ftp-server that not older than $VAR (x) days
eg for seven days
./script 7
or two weeks
./script 14
all files from the last 14 days will download but how i can explain "ftp" this?
sorry for my strange english :/ (2 Replies)
I have automated ftp for different scripts. every script uses different login and passwords for different server. it reads the username and password from netrc.
there is 1 particular script that is failing. this script is failing in FTP step. i have checked the logs it says login failed. but... (5 Replies)
Hello,
I am having trouble calculating some numbers and I was hoping someone could help me solve this.
I have one file with 1 column and what I'm trying to do is add up the lines until a certain value is reach, then jump to where it last finished counting and continue.
so for ex: if I... (27 Replies)
Discussion started by: verse123
27 Replies
LEARN ABOUT OSX
net::netrc
Net::Netrc(3pm) Perl Programmers Reference Guide Net::Netrc(3pm)NAME
Net::Netrc - OO interface to users netrc file
SYNOPSIS
use Net::Netrc;
$mach = Net::Netrc->lookup('some.machine');
$login = $mach->login;
($login, $password, $account) = $mach->lpa;
DESCRIPTION
"Net::Netrc" is a class implementing a simple interface to the .netrc file used as by the ftp program.
"Net::Netrc" also implements security checks just like the ftp program, these checks are, first that the .netrc file must be owned by the
user and second the ownership permissions should be such that only the owner has read and write access. If these conditions are not met
then a warning is output and the .netrc file is not read.
THE .netrc FILE
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. Once a match is made, the subsequent .netrc tokens are processed, stopping when the end of file is reached or an- other
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 login to machines not specified in .netrc.
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.
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.
macdef name
Define a macro. "Net::Netrc" only parses this field to be compatible with ftp.
CONSTRUCTOR
The constructor for a "Net::Netrc" object is not called new as it does not really create a new object. But instead is called "lookup" as
this is essentially what it does.
lookup ( MACHINE [, LOGIN ])
Lookup and return a reference to the entry for "MACHINE". If "LOGIN" is given then the entry returned will have the given login. If
"LOGIN" is not given then the first entry in the .netrc file for "MACHINE" will be returned.
If a matching entry cannot be found, and a default entry exists, then a reference to the default entry is returned.
If there is no matching entry found and there is no default defined, or no .netrc file is found, then "undef" is returned.
METHODS
login ()
Return the login id for the netrc entry
password ()
Return the password for the netrc entry
account ()
Return the account information for the netrc entry
lpa ()
Return a list of login, password and account information fir the netrc entry
AUTHOR
Graham Barr <gbarr@pobox.com>
SEE ALSO
Net::Netrc Net::Cmd
COPYRIGHT
Copyright (c) 1995-1998 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
perl v5.16.2 2012-08-26 Net::Netrc(3pm)