Search Results

Search: Posts Made By: forums123456
17,725
Posted By forums123456
No. We are not allowed to use key based...
No.

We are not allowed to use key based connection.
I am required to use credentials and connect to sftp server via script with not manual intervention.
Can i know how can i do this?
17,725
Posted By forums123456
SFTP / SCP using password
Hi,

I was provided with sftp servername, user and password and the requirement is to connect to sftp server using credentials provided and drop the file.
Manually i am able to connect with...
31,737
Posted By forums123456
Actually i was looking to get those files from...
Actually i was looking to get those files from remote machine which are already written ( written is complete ). I dont want to pull incomplete files or files which are being written on remote...
31,737
Posted By forums123456
SFTP - Get size of file on remote server
Hi,

I have a requirement where I need to do SFTP connection to remote server, get the size of the file on remote server and depending on the size, i need to get the file onto local server.
Is...
18,421
Posted By forums123456
I tried below three commands. None returned the...
I tried below three commands. None returned the verion. Output of $KSH_VERSION is blank

ksh --version

ksh: ksh: --: unknown option

echo "${.sh.version}"

bash: ${.sh.version}: bad...
18,421
Posted By forums123456
comm command -- Sort and compare two files
Team,

I have two files and I am trying to find the lines unique to file1. So i have executed the below command at shell prompt and got the correct results

comm -23 <(sort test) <(sort test1)...
1,688
Posted By forums123456
Perl - Regular Expressions - Match complete word only
Hi Team,

I have two strings like:
xxx|yyy|Arizona Cardinals| Tell Cardinals | Cardinals
bbb|Bell Earn, Jr | Bell Earn | Jayhawks | hawks

I have a lookup file which has a set of strings....
9,929
Posted By forums123456
\$$i turning out to take Procees ID. You can see...
\$$i turning out to take Procees ID. You can see the set -x below
awk -F\t {print 14306i}

I tried with below variation and it is working now.
awk -F"\t" "{print $"$i"}"

Thanks for your...
9,929
Posted By forums123456
Didn't worked. Output from set -x is below. No...
Didn't worked.
Output from set -x is below. No Interpolation is happening.
I am using korn shell.
awk -F\t {print $$i}
9,929
Posted By forums123456
Variable interpolation in "print" of awk command
Hi,
I have a snippet like below.
Based on variable i, i wish to print 1,2,3,4,5th columns to Sample files.
For each loop, one column from contetn and results will be pused to sample files. But i...
1,781
Posted By forums123456
Thank you. Its working.
Thank you.
Its working.
1,781
Posted By forums123456
[Solved] Lookup a file and match the contents
Hi,

I appreciate all who have been very helpful to me in providing valuable suggestions and replies.

I want to write a script to look up a file and match the contents. Let me go through the...
2,086
Posted By forums123456
Thanks for the reply We are using Linux ,...
Thanks for the reply
We are using Linux , revision 2.6.9-89.ELsmp.
I don't have administrative rights over remote systems and I am trying to get both FTP and SCP work reliably

Better FTP...
2,086
Posted By forums123456
FTP - SCP
Hi Team,

When an FTP is success, code 226 is returned.
Is there a possibility of return of code 226, when a part of file is transmitted to remote server.

SCP do not return any codes but exit...
4,999
Posted By forums123456
Thanks for the response. Please see my FTP code...
Thanks for the response. Please see my FTP code snippet below
for trial in {1..5} # Retry FTP 5 times
do
echo -e "\nAttempt to FTP the file ==> $trial" >> $upload_log;
/usr/bin/ftp...
4,999
Posted By forums123456
FTP/SFTP/SCP Files
Hi,

I have a process which FTP's the files from one server to another server.
Sometimes only half or a part of the file is delivered to remote location, but on the end log says FTP is successful....
14,880
Posted By forums123456
Solution worked. Its displays the size in bytes. ...
Solution worked. Its displays the size in bytes.
How can i convert these sizes into MB?
14,880
Posted By forums123456
Thanks All. Solutions worked
Thanks All.

Solutions worked
14,880
Posted By forums123456
Get original file size of zipped file
Hi,

I have a process which creates files and gzip all the files.
Next day, i need to get the file sizes ( before zip size ) of all the gzipped files. Is there any way i can get the original file...
7,399
Posted By forums123456
Convert duration of the process to seconds
Hi,

I am looking to write a script to kill the process which are running for more than 7 days.
So i have a command like
"ps -eo pid,etime,args | grep -i xxxx" ( process which has xxx in it...
899
Posted By forums123456
Rename the file
Hi

I have files like
aaaa_bbbb_tender_cccc.txt
aaaa_bbbb_britley_dddd.txt
aaaa_bbbb_wonder_eeee.txt

Now when my process runs, it will pick on of the above files and if process fails, file...
3,907
Posted By forums123456
External IP Address of Linux Server
Hi,

I am trying to find the external IP address of a server "XXX".
I logged into server "XXX" and executed nslookup XXX. output number is 123.23.23.45
Later, i have executed "curl...
3,891
Posted By forums123456
Mail with From Address
hello all

When i send an email using "mail" command, it is received by intended receiver but From Adress is getting displayed as user@hostname.
Is there any way to change the From address of...
1,488
Posted By forums123456
Mail with body
Hello All,

I wish to mail after completion of code. I would like to include subject and body in it. I am not looking to read the body from other file but willing to provide the body in the...
2,143
Posted By forums123456
Thanks a bunch. It worked.
Thanks a bunch. It worked.
Showing results 1 to 25 of 32

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