SCSU help


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting SCSU help
# 1  
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. 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

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. 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
Login or Register to Ask a Question
SIMPLEFTP(1)						    InterNetNews Documentation						      SIMPLEFTP(1)

NAME
simpleftp - Rudimentary FTP client SYNOPSIS
simpleftp url [...] DESCRIPTION
simpleftp is a Perl script that provides basic support for fetching files with FTP in a batch oriented fashion. It takes one or more FTP URLs on the command line. The file(s) will be retrieved from the remote server and placed in the current directory with the same basename as on the remote; e.g., <ftp://ftp.isc.org/pub/usenet/CONFIG/active.gz> is stored as active.gz in the current directory. The script properly understands usernames, passwords and ports specified as follows: ftp://user:password@host:port/path/file BUGS
simpleftp is an extremely poor substitute for more complete programs like the freely available wget or ncftp utilities. It was written only to provide elementary support in INN for non-interactive fetching of the files in <ftp://ftp.isc.org/pub/pgpcontrol/> or <ftp://ftp.isc.org/pub/usenet/CONFIG/> without requiring administrators to install yet another package. Its shortcomings as a general purpose program are too numerous to mention, but one that stands out is that downloaded files by simpleftp override existing files with the same name in the local directory. HISTORY
Tossed off by David C Lawrence <tale@isc.org> for InterNetNews. Rewritten to use "Net::FTP" by Julien Elie. $Id: simpleftp.pod 8357 2009-02-27 17:56:00Z iulius $ SEE ALSO
actsync(8). INN 2.5.2 2009-05-21 SIMPLEFTP(1)