Search Results

Search: Posts Made By: ssachins
2,050
Posted By ssachins
The users are using SFTP service at their end to...
The users are using SFTP service at their end to transfer the files onto our Server. We need some kind of 'Tracking' system to check which are all the servers are connecting to our server which only...
2,050
Posted By ssachins
Thanks for reply. The files are receiving...
Thanks for reply.
The files are receiving from the different systems which are using the same userName.
All the files are getting published onto our server. We do not have any cronjob which...
2,050
Posted By ssachins
To find the publisher of file
Hello All,

We are recently migrated to a new server and we have transferred the public keys from old server to new server and communicated to all the systems to publish their files onto new...
33,147
Posted By ssachins
Latest files through sftp
Hi,

Sorry for late reply,

Please find the complete script


*********************
# To copy latest files which were created in the last 15 min
# from upstream System Server to local...
33,147
Posted By ssachins
Hi, I have changed the script as # ...
Hi,
I have changed the script as
#
echo "cd /home/data/" > getFilelist
echo "ls -l "ABC*" >> getFilelist
echo "quit" >> getFilelist

sftp -b getFilelist user@hostname >filelist <<EOF
#...
33,147
Posted By ssachins
Hello All, This is what the complete script...
Hello All,

This is what the complete script I have written.



#!/bin/ksh

sftp user@hostname >filelist <<EOF
cd /home/data/
ls -l "ABC*"
quit

while read a b c d e f g h file
do
...
33,147
Posted By ssachins
I will try it tomorrow and confirm.
I will try it tomorrow and confirm.
33,147
Posted By ssachins
I will get the complete list everytime whenever I...
I will get the complete list everytime whenever I fetch the filenames. I am not sure whether it's possible to get only latest files from the server. That's what is the actual requirement is.
33,147
Posted By ssachins
while using sftp, we can only use ls -l, So the...
while using sftp, we can only use ls -l, So the files recived to local server will not be in publish time order.

Also, where this filelist file will get generated. on local drive / remote server ?...
33,147
Posted By ssachins
Sorry, I didn't get whts MDTM means. Can you...
Sorry, I didn't get whts MDTM means.
Can you please provide more description?
33,147
Posted By ssachins
Can it work this way - when the script...
Can it work this way -
when the script executes first time, it will fetch all the files published for respecitve date. once received to local drive, when the script executes for next...
33,147
Posted By ssachins
Right, We do not have permission to write/move...
Right, We do not have permission to write/move the files of remote server.
33,147
Posted By ssachins
Latest file through SFTP
Hi,

I want to download the latest file published on remote server using SFTP connection.
The job will run at every 15 min hence should download only the latest file. The fileName will be like...
1,383
Posted By ssachins
Declear the Variables $Last_day ...
Declear the Variables

$Last_day
$First_day

for PREV_DATE in filename
do
{
sed 's/'"$PREV_DATE"'/'"$LAST_DAY"'/g' FileName > TEST.TXT
mv TEST.txt FileName
}
done

for...
2,681
Posted By ssachins
It's working now. Thank you all.
It's working now.
Thank you all.
2,681
Posted By ssachins
I tried the above code too but getting the below...
I tried the above code too but getting the below error -

awk: syntax error near line 1
awk: bailing out near line 1
2,681
Posted By ssachins
The above mentioned code is converting the first...
The above mentioned code is converting the first '|' to Tab delimited but unable to format the second '|' value to new line.

Also, I found another issue is like the input file does not contains...
2,681
Posted By ssachins
Hi Ahmad, It's working:b:. Could you...
Hi Ahmad,

It's working:b:. Could you please explain how it works ?
2,681
Posted By ssachins
I am getting message as 'Label too long : :a;s/|/...
I am getting message as 'Label too long : :a;s/|/ /;s/|/\n/;ta'

The each input line will be more than 1000 characters and contains more than 75 even numbers of '|' delimiter.
2,681
Posted By ssachins
Conversion of '|' delimiter
Hello All,

I want to convert the data saparated by '|' delimited in the flat file to the readable format.

The every odd number '|' (pipe) to be converted to '\tab' and every even numbered...
2,935
Posted By ssachins
The files will be generated only from Monday to...
The files will be generated only from Monday to Friday. No file will generate on weekends. Cronjob will run only on these 5 days.
2,935
Posted By ssachins
I didn't asked to write the code for me. I just...
I didn't asked to write the code for me. I just asked how to avoid the Saturday and Sunday while calculating the days.
I have written day's functions like.

function back_3days
{
typeset...
2,935
Posted By ssachins
purging of Files
Hello All,

I want to delete the files based on the days. like, Files available under directory /abc want to delete if they are older than 15 days.
Files available under directory /pqr want to...
12,480
Posted By ssachins
copying files from UNIX to windows using FTP
Hi,

I want to transfer the approx 10k files available on UNIX Server to Windows Server using FTP Command. is it possible? how ?

Thanks in advance.

Sachin.
1,917
Posted By ssachins
I have executed the same script and it's working...
I have executed the same script and it's working for me.
I do not see any issues with it. Check for whitespeace in the file.
Showing results 1 to 25 of 49

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