Search Results

Search: Posts Made By: bheeshmaraja
3,766
Posted By bheeshmaraja
Need to print body of content using mailx
Hi,
I'm a perl developer. I need to attach a file from my perl cgi script and send mail to our users whoever using our website. I have used mailx command to attach a file.. it is working fine for...
3,333
Posted By bheeshmaraja
heredoc error check
Hi,
Is there any way to check the error in heredoc?

Code:


/export/opt/SCssh/3.7.1_C0/bin/sftp -B - csi@192.168.1.100 <<FTP
lcd /WEBSERVER_LINK/data_logs/
ls...
9,914
Posted By bheeshmaraja
Thanks Corona. Now my heredoc is working fine. ...
Thanks Corona.
Now my heredoc is working fine.
Code:

/export/opt/SCssh/3.7.1_C0/bin/sftp -B - csi@192.168.1.100 <<FTP
lcd /WEBSERVER_LINK/data_logs/
ls...
9,914
Posted By bheeshmaraja
Thanks anchal. I tried this heredoc in...
Thanks anchal.

I tried this heredoc in command line, I'm getting the same result which I'm getting in script.

bash-3.00$ /export/opt/SCssh/3.7.1_C0/bin/sftp csi@192.168.1.100 <<FTP
> lcd...
9,914
Posted By bheeshmaraja
Thanks for the reply. I heard from my...
Thanks for the reply.

I heard from my colleague that, there is some restriction set in sftp server, that's why heredoc is executing only one command. If I put get as a first command in heredoc,...
9,914
Posted By bheeshmaraja
sftp version : ...
sftp version :

/export/opt/SCssh/3.7.1_C0/bin/sftp: SSH Tectia Server 4.4.8 on sparc-sun-solaris2.8
Build: 21


Also I forgot to mention in my previous post that, if we use commands in batch...
9,914
Posted By bheeshmaraja
Problem in SFTP using heredoc
Hi,
I'm having heredoc to get files from ftp server.

#!/bin/bash
/export/opt/SCssh/3.7.1_C0/bin/sftp csi@192.168.1.100 <<GET_FILES
lcd /WEBSERVER_LINK/data_logs/
ls -l...
1,296
Posted By bheeshmaraja
SCRIPT FORMAT
Hi I have written a script in bash. It doesn't look like a proper bash script. Please find the script and guide me, how to make it more efficient and lookable code. I have not used any libraries for...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 02:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy