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
ftp::geturl(n)							    ftp client							    ftp::geturl(n)

__________________________________________________________________________________________________________________________________________________

NAME
ftp::geturl - Uri handler for ftp urls SYNOPSIS
package require Tcl 8.2 package require ftp::geturl ?0.2.1? ::ftp::geturl url _________________________________________________________________ DESCRIPTION
This package provides a command which wraps around the client side of the ftp protocol provided by package ftp to allow the retrieval of urls using the ftp schema. API
::ftp::geturl url This command can be used by the generic command ::uri::geturl (See package uri) to retrieve the contents of ftp urls. Internally it uses the commands of the package ftp to fulfill the request. The contents of a ftp url are defined as follows: file The contents of the specified file itself. directory A listing of the contents of the directory in key value notation where the file name is the key and its attributes the asso- ciated value. link The attributes of the link, including the path it refers to. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category ftp of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. SEE ALSO
ftpd, mime, pop3, smtp KEYWORDS
ftp, internet, net, rfc 959 CATEGORY
Networking ftp 0.2.1 ftp::geturl(n)
All times are GMT -4. The time now is 12:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy