10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I was trying to execute below sftp command.
echo "cd /${CUST_ID}/inbound/${SAFET_ID}" > $BATCHFILE
echo "put ${SOURCE_FILE} ${FILE_NAME}" >> $BATCHFILE
echo "exit" >> $BATCHFILE
cmd="sftp -o port=2022 -b $BATCHFILE user@$SERVER"
$cmd >> $LOGFILE 2>&1
if 2>>$LOGFILE
then... (3 Replies)
Discussion started by: Girish19
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am on Solaris 10 server. I wanted to see a port is ESTABLISHED or in the LISTEN mode. But when I do netstat -a |grep 22205, it's hanging. I have waited over two minutes.
Is it possible, something else is wrong on the server? I don't see anything on /var/adm/messages file.
... (3 Replies)
Discussion started by: samnyc
3 Replies
3. Solaris
Hi Folks,
When i execute the command df -kh in my system the o/p hangs..
The command runs fine but takes a lot of time before coming back to the # prompt.
Can anyone please suggest the possible cause and solution?. (10 Replies)
Discussion started by: vivek.goel.piet
10 Replies
4. UNIX for Dummies Questions & Answers
Hi! I have written a program three threads will be created to execute three different Sybase SQLs. so three thread will call a method runQuery.
In run query again we create child process to execute the actuall SQL by connecting to the SQL. When I run the process first three threading working fine.... (0 Replies)
Discussion started by: jramesh1
0 Replies
5. Shell Programming and Scripting
ok... this is where i am at... i need a script to call another script as a wrapper because the first script creates a sub-shell.
here is what i got... i kick off the first script "CCBDEMO-threadpoolworker.sh"
#!/bin/bash
clear #clearing screen
directory="/data1/spl/cis/CCBDEMO/bin"... (1 Reply)
Discussion started by: Dagaswolf
1 Replies
6. Shell Programming and Scripting
Hello,
I have the following shell script and when i execute, it keeps hanging and nothing happens
Please let me know.
Requirement is to read data from file and pass it to the sql and create files as shown.
code
/********
#!/bin/sh
while read user.dat
do
echo "user = $1 email =... (1 Reply)
Discussion started by: rakeshsr12
1 Replies
7. UNIX for Dummies Questions & Answers
Ok, this question my be different. I can ping our unix box, but when we I to access the webpage I cant. To access the webpage I type http://ipaddress:some port. How do I check if a port is hanging and how would I un hang it. Sorry if question doesnt make sense. (1 Reply)
Discussion started by: NycUnxer
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
I am doing a sftp from solaris 2.8 box to windows XP box. I am able to transfer the files successfully from the windows box to Solaris box (that is only I need).
Problem arises when I try to exit/quit from the sftp session. sftp gets hung and I have to kill the telnet session by closing... (1 Reply)
Discussion started by: max29583
1 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I am unable to figure out why my ps command is haning.
Is some one else is running a process which is hanged. But in that case also if i do ps it should show only the processes running by me only.
Thanks & Regards
Gauri Agrawal (2 Replies)
Discussion started by: gauri
2 Replies
10. UNIX for Dummies Questions & Answers
On Solaris 8..
28166 user 3693M 2736M sleep 5 0 0:05.38 0.0% PROCESS/4
How can I tell if this process is doing anything or just hanging? (2 Replies)
Discussion started by: dangral
2 Replies
sftp-server(1M) System Administration Commands sftp-server(1M)
NAME
sftp-server - SFTP server subsystem
SYNOPSIS
/usr/lib/ssh/sftp-server
DESCRIPTION
sftp-server implements the server side of the SSH File Transfer Protocol as defined in the IETF draft-ietf-secsh-filexfer.
sftp-server is a subsystem for sshd(1M) and must not be run directly. There are no options or config settings.
To enable the sftp-server subsystem for sshd add the following to /etc/ssh/sshd_config:
Subsystem sftp /usr/lib/ssh/sftp-server
See sshd_config(4) for a description of the format and contents of that file.
There is no relationship between the protocol used by sftp-server and the FTP protocol (RFC 959) provided by in.ftpd.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/usr/lib/sftp-server
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsshdu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
sftp(1), ssh(1), ssh-add(1), ssh-keygen(1), sshd(1M), sshd_config(4), attributes(5)
To view license terms, attribution, and copyright for OpenSSH, the default path is /var/sadm/pkg/SUNWsshdr/install/copyright. If the
Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed
location.
AUTHOR
Markus Friedl
SunOS 5.10 30 Jul 2003 sftp-server(1M)