07-21-2006
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a script that is working:
#!/bin/bash
sftp user@domain.com <<EOF
cd somedir
mget *.csv
quit
EOF
but on a crontab I want to only pull newer files, so I want to do something like:
while read ls current dir local file != true do
mget that new file
but I'm not sure the syntax... (2 Replies)
Discussion started by: unclecameron
2 Replies
2. UNIX for Advanced & Expert Users
Hello Experts,
I have a script that that transfers a file (via sftp) and it works fine but we ran into a snag where the target server asked for the ssh key and the script didn't know what to do. I want to add some logic to this script that at least sends an email that it didn't complete as... (4 Replies)
Discussion started by: Tiberius777
4 Replies
3. Shell Programming and Scripting
Hi,
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
do
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
fi
done< files.txt
sftp -b sftpCommand.txt stu@192.168.2.1
The above... (1 Reply)
Discussion started by: noobrobot
1 Replies
4. Shell Programming and Scripting
Hello, i'm doing something like that
#!/bin/sh
sftp 172.18.255.140 <<End-Of-Session >> /usr/batch/logsftp.txt
user batch
ascii
lcd /usr/batch
get olaola.txt
bye
End-Of-Session
if
then
echo MAL >> /usr/batch/logsftp.txt
echo $? >> /usr/batch/logsftp.txt
exit $?
else
echo... (16 Replies)
Discussion started by: dexposit
16 Replies
5. Shell Programming and Scripting
I have to send few gzipped files from local server to SFTP server.
My Server Info
Distributor ID: Ubuntu Description: Ubuntu 12.04.4 LTS Release: 12.04 Codename: precise
Created a bash script and could able to send files to sftp, but i want to send email if transfer is successful.
... (1 Reply)
Discussion started by: krux_rap
1 Replies
6. Shell Programming and Scripting
I'm having trouble with some automated sftp pulls. I'm using expect inside bash scripts and spawning SFTP. Some times the expect seems bog down. I have tried to put sleeps in my code to give everything time to work before I move on to next step but I till continue to get issues. For example when... (2 Replies)
Discussion started by: gosteen
2 Replies
7. Shell Programming and Scripting
Dear All,
I have a requirement where I have to SFTP or SCP a file in a batch script. Unfortunately, the destination server setup is such that it doesn't allow for shell command line login. So, I am not able to set up SSH keys. My source server is having issues with Expect. So, unable to use... (5 Replies)
Discussion started by: ss112233
5 Replies
8. Shell Programming and Scripting
Hello,
when running the scripts below I am not getting message bb2.
Can you please help?
#!/bin/bash
TLOG=/tmp/bb/amatest.log
FTPRESULTS=/tmp/bb/amlist
export TLOG FTPRESULTS
>$TLOG
>$FTPRESULTS
echo bb1
sftp -oPort=2222 XXXXXXXXXXXXX@sftp.userssedi.com <<EOF
cd... (5 Replies)
Discussion started by: biljana
5 Replies
9. Shell Programming and Scripting
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
10. UNIX for Beginners Questions & Answers
In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ?
--- Post updated at 08:39 AM ---
in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies
CSYR(l) ) CSYR(l)
NAME
CSYR - perform the symmetric rank 1 operation A := alpha*x*( x' ) + A,
SYNOPSIS
SUBROUTINE CSYR( UPLO, N, ALPHA, X, INCX, A, LDA )
CHARACTER UPLO
INTEGER INCX, LDA, N
COMPLEX ALPHA
COMPLEX A( LDA, * ), X( * )
PURPOSE
CSYR performs the symmetric rank 1 operation A := alpha*x*( x' ) + A, where alpha is a complex scalar, x is an n element vector and A is an
n by n symmetric matrix.
ARGUMENTS
UPLO - CHARACTER*1
On entry, UPLO specifies whether the upper or lower triangular part of the array A is to be referenced as follows:
UPLO = 'U' or 'u' Only the upper triangular part of A is to be referenced.
UPLO = 'L' or 'l' Only the lower triangular part of A is to be referenced.
Unchanged on exit.
N - INTEGER
On entry, N specifies the order of the matrix A. N must be at least zero. Unchanged on exit.
ALPHA - COMPLEX
On entry, ALPHA specifies the scalar alpha. Unchanged on exit.
X - COMPLEX array, dimension at least
( 1 + ( N - 1 )*abs( INCX ) ). Before entry, the incremented array X must contain the N- element vector x. Unchanged on exit.
INCX - INTEGER
On entry, INCX specifies the increment for the elements of X. INCX must not be zero. Unchanged on exit.
A - COMPLEX array, dimension ( LDA, N )
Before entry, with UPLO = 'U' or 'u', the leading n by n upper triangular part of the array A must contain the upper triangular
part of the symmetric matrix and the strictly lower triangular part of A is not referenced. On exit, the upper triangular part of
the array A is overwritten by the upper triangular part of the updated matrix. Before entry, with UPLO = 'L' or 'l', the leading n
by n lower triangular part of the array A must contain the lower triangular part of the symmetric matrix and the strictly upper tri-
angular part of A is not referenced. On exit, the lower triangular part of the array A is overwritten by the lower triangular part
of the updated matrix.
LDA - INTEGER
On entry, LDA specifies the first dimension of A as declared in the calling (sub) program. LDA must be at least max( 1, N ).
Unchanged on exit.
LAPACK version 3.0 15 June 2000 CSYR(l)