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
UGET-GTK(1)							   User Commands						       UGET-GTK(1)

NAME
uget-gtk - a download manager that uses gtk+2, and libcurl SYNOPSIS
uget-gtk [options] [URL] DESCRIPTION
Help Options: -?, --help Show help options. --help-all Show all help options. --help-gtk Show GTK+ Options Application Options: --quiet add download directly. Don't show dialog. --category-index=N add download to Nth category. (default -1) --folder=FOLDER placed download file in FOLDER. --filename=FILE set download filename to FILE. --user=USER set both ftp and http user to USER. --password=PASS set both ftp and http password to PASS. --proxy-type=N set proxy type to N. (0=Don't use) --proxy-host=HOST set proxy host to HOST. --proxy-port=PORT set proxy port to PORT. --proxy-user=USER set USER as proxy username. --proxy-password=PASS set PASS as proxy password. --http-user=USER set http user to USER. --http-password=PASS set http password to PASS. --http-referer=URL include `Referer: URL' header in HTTP request. --http-cookie-data=STRING load cookies from STRING. --http-cookie-file=FILE load cookies from FILE. --http-post-data=STRING use the POST method; send STRING as the data. --http-post-file=FILE use the POST method; send contents of FILE --ftp-user=USER set ftp user to USER. --ftp-password=PASS set ftp password to PASS. --display=DISPLAY X display to use AUTHOR
uget was written by Raymond Huang <plushuang at users.sourceforge.net>,and this manual page was originally written by Dennis Craven <dcraven@gmail.com> uget-gtk 1.4.9 July 2009 UGET-GTK(1)
All times are GMT -4. The time now is 09:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy