auto ftp question

  • Follow


I was doing a little script to auto-ftp some file,

all host, passwd, etc are stored into a .netrc file.

the problem is that I couldn't get it to grab passwd and other info..

any advice? 


0
Reply steeles (17) 8/22/2007 4:49:02 PM

On Wed, 22 Aug 2007 12:49:02 -0400
"steeles" <steeles@gmail.com> wrote:

> I was doing a little script to auto-ftp some file,
>=20
> all host, passwd, etc are stored into a .netrc file.
>=20
> the problem is that I couldn't get it to grab passwd and other info..
>=20
> any advice?=20
>=20
>=20
Hi
Did you source the file in your script?

--=20
Cheers Malcolm =C2=B0=C2=BF=C2=B0 (Linux Counter #276890)
SLED 10.0 SP1 x86_64 Kernel 2.6.16.46-0.14-smp
up 2 days 12:25, 5 users, load average: 0.17, 0.24, 0.26
0
Reply Malcolm 8/22/2007 4:56:30 PM


never mind. figure it out.

I su in, so ftp still remember my login name instead of root. that is why 
ftp didn't pickup info from .netrc because it didn't match with 'root'.

thanks.

"Malcolm" <malcolm_nospamlewis@bellsouth.net> wrote in message 
news:20070822115630.6ced3eee@oscar-sled.homeunix.net...
On Wed, 22 Aug 2007 12:49:02 -0400
"steeles" <steeles@gmail.com> wrote:

> I was doing a little script to auto-ftp some file,
>
> all host, passwd, etc are stored into a .netrc file.
>
> the problem is that I couldn't get it to grab passwd and other info..
>
> any advice?
>
>
Hi
Did you source the file in your script?

-- 
Cheers Malcolm ��� (Linux Counter #276890)
SLED 10.0 SP1 x86_64 Kernel 2.6.16.46-0.14-smp
up 2 days 12:25, 5 users, load average: 0.17, 0.24, 0.26 


0
Reply steeles 8/22/2007 5:01:03 PM

2 Replies
121 Views

(page loaded in 0.082 seconds)


Reply: