Taking my earlier suggestion and converting it to use a file instead of a pipeline:
which wastes system resources and runs slower than my earlier suggestion.
Converting it to use a here-document:
which might be a little bit faster than my earlier suggestion. Since printf is a built-in utility in most shells, it won't make a lot of difference.
Hope this helps,
- Don
This User Gave Thanks to Don Cragun For This Post:
Hi i am a newbie who is trying to input parameters into this script, but not sure where to start.
The parameters that need to be input are the baseline label "abc.0111.BL " mantioned bellow, and database string "abc/abcp@db2 @counter.sql "
Environment: Windows XP
Running script: Cygwin 3.2
... (2 Replies)
Hey when trying to connect to a server using a key I get
sftp -o 'Port=22' -o'IdentityFile=/home/datatel/.ssh/id_dsa_xei' becker_xei@host Connecting to host...
ANGEL SFTP ServerConnection closed by host
Connection closed
Any ideas? (1 Reply)
Dear All,
I'm trying to configure the passwordless connection between two servers say Server A and Server B.
My requirement is a passwordless connection from Server A to Server B.
I have done the configuration in both the servers. In Server A its successfull but from Server B its everytime... (7 Replies)
Hi Guys,
I am trying to redirect output from a file to another file while retaining the contents of the input file.
For ex:
cat /tmp/Out1.cfg > test.txt
Now, test.txt would contain the value of Out1.cfg.,ie say for ex "12"
What i require is to have the value as "/tmp/Out1.cfg 12" in the... (2 Replies)
Hi
I when I trying to SFTP a file to a server I am getting this below error:
Connecting to 3.12.911.100...
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory
Host key verification failed.
Connection closed
Can you please help me in debugging this error.
... (3 Replies)
Hi All,
in our system , the sftp server is continuously up. but suddenly it is brought down. how can i find out the reason behind of these , is their any log files or how can i check the connectvity with sftp.
please help me to solve this issue (1 Reply)
HI,
I have generated public key and placed in remote server. When I am trying to do SFTP for that remote server the below error I am getting. Please help me to resolve
Connecting to hostname...
Sun_SSH_1.1.4, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
debug1: Reading configuration data... (4 Replies)
Dear All ,
I have a openssh 4.3p2 , but i need to configure sftp for a user which is present in the server.
This user has to see only the specific directory not all.
I tried to do the changes in sshd_config for openssh 4.9p1 , but for openssh 4.3p2 how to do it.
Any one pl help.
... (1 Reply)
I am working on a shell script where after making sftp connection to a remote server the file are being transferred. The problem is how to capture return code for the file which is missing at the remote location. I have tried to capture the return code which return value of "0" even the transfer of... (4 Replies)
I am running this script to copy pattern files in local but it is asking for password even passing the hardcode value
Script:-
PASSWORD="xyz"
sftp -oport=1002 user@host:/dir/archive/file*.txt /di/data/
<< EOF
$PASSWORD
quit
EOF
Got error :-
-bash-4.1$ sh sftp_with_password.sh... (5 Replies)
Discussion started by: himanshupant
5 Replies
LEARN ABOUT V7
plot
PLOT(1G)PLOT(1G)NAME
plot - graphics filters
SYNOPSIS
plot [ -Tterminal [ raster ] ]
DESCRIPTION
These commands read plotting instructions (see plot(5)) from the standard input, and in general produce plotting instructions suitable for
a particular terminal on the standard output.
If no terminal type is specified, the environment parameter $TERM (see environ(5)) is used. Known terminals are:
4014 Tektronix 4014 storage scope.
450 DASI Hyterm 450 terminal (Diablo mechanism).
300 DASI 300 or GSI terminal (Diablo mechanism).
300S DASI 300S terminal (Diablo mechanism).
ver Versatec D1200A printer-plotter. This version of plot places a scan-converted image in `/usr/tmp/raster' and sends the result
directly to the plotter device rather than to the standard output. The optional argument causes a previously scan-converted file
raster to be sent to the plotter.
FILES
/usr/bin/tek
/usr/bin/t450
/usr/bin/t300
/usr/bin/t300s
/usr/bin/vplot
/usr/tmp/raster
SEE ALSO plot(3), plot(5)BUGS
There is no lockout protection for /usr/tmp/raster.
PLOT(1G)