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
ftp(4)								   File Formats 							    ftp(4)

NAME
ftp - FTP client configuration file SYNOPSIS
/etc/default/ftp DESCRIPTION
Use the ftp file to configure the behavior of the FTP client. Lines that begin with a hash symbol ("# ") are treated as comment lines and are ignored. Behavior Directives The ftp file supports the following behavior directives: FTP_LS_SENDS_NLST=yes | no The ls command of the ftp client sends an NLST to the FTP Server by default. Several non-Solaris clients send LIST instead. In order to make the Solaris ftp client send LIST when the ls command is issued, set FTP_LS_SENDS_NLST to no. The value of FTP_LS_SENDS_NLST is yes by default. If the user sets a value for FTP_LS_SENDS_NLST in the user's environment, this value will override any FTP_LS_SENDS_NLST directive that is specified in /etc/default/ftp. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbipr | +-----------------------------+-----------------------------+ SEE ALSO
ftp(1), attributes(5) SunOS 5.11 22 Oct 2002 ftp(4)