Sponsored Content
Full Discussion: SCSU help
Top Forums Shell Programming and Scripting SCSU help Post 302363391 by Amit.Sagpariya on Tuesday 20th of October 2009 07:56:05 AM
Old 10-20-2009
SCSU help

Hi All,
I have written a script to do ftp.
Code:
 
#!/bin/sh

cd /data/mgr/
HOST='xyz'
ftp -nv $HOST <<"EOT"
quote user abc
quote pass abc
prompt
cd /sdata
mget PQR.TXT
bye
EOT

but the problem is i do not have permission to copy the file in target folder. I need to use SCSU to login as other user. But while giving scsu... it prompts for password and reason.
How can i write pwd and reason in my script, so that it should not prompt me for PWD and reason?

---------- Post updated at 05:26 PM ---------- Previous update was at 05:17 PM ----------

***********-----------------**********

also, in source, i have hundresds of TXT files... out of it i want to get only selected 10 .TXT files. problem is there is not a single thing which matches between these files.... So i have to write 10 times FTP command in script... is there any otherway to achive this by using only one FTP command and get all 10 files.
 

3 More Discussions You Might Find Interesting

1. Solaris

Scsu

Newbie question....I was told that I can scsu into the server to use the sybase user??? Any explanation of scsu would be quite helpful? Thanks! (2 Replies)
Discussion started by: jjv1
2 Replies

2. Solaris

Direct/scsu access to unix account

Hey Is there any way to differentiate if a user is logged directly into a UNIX functional account or if they have scsu'ed into the functional account? Cheers Paul (2 Replies)
Discussion started by: runnerpaul
2 Replies

3. UNIX for Dummies Questions & Answers

Difference between su and scsu?

Hi, Could you please explain the difference between scsu and su? i tried doing "man scsu" but my unix machine is saying No manual entry for scsu. All i know is su and scsu both are used to login as super user. Can somebody help me understanding the concept of both? (4 Replies)
Discussion started by: Kamna
4 Replies
IO::All::FTP(3pm)					User Contributed Perl Documentation					 IO::All::FTP(3pm)

NAME
IO::All::FTP - Extends IO::All to FTP URLs SYNOPSIS
use IO::All; "hello world " > io('ftp://localhost/test/x'); # save to FTP io('ftp//example.org/pub/xyz') > io('xyz'); # GET to file # two ways of getting a file with a password: $content < io('ftp://me:secret@example.org/xyz'); $content < io('ftp://example.org/xyz')->user('me')->password('secret'); DESCRIPTION
This module extends IO::All for dealing with FTP URLs. Note that you don't need to use it explicitly, as it is autoloaded by IO::All whenever it sees something that looks like an FTP URL. METHODS
This is a subclass of IO::All::LWP. The only new method is "ftp", which can be used to create a blank IO::All::FTP object; or it can also take an FTP URL as a parameter. Note that in most cases it is simpler just to call io('ftp//example.com'), which calls the "ftp" method automatically. OPERATOR OVERLOADING
The same operators from IO::All may be used. < GETs an FTP URL; > PUTs to an FTP URL. SEE ALSO
IO::All::LWP, IO::All, LWP. AUTHORS
Ivan Tubert-Brohman <itub@cpan.org> and Brian Ingerson <ingy@cpan.org> COPYRIGHT
Copyright (c) 2007. Ivan Tubert-Brohman and Brian Ingerson. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> perl v5.10.0 2007-03-29 IO::All::FTP(3pm)
All times are GMT -4. The time now is 10:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy