Search Results

Search: Posts Made By: vsmeruga
4,538
Posted By vsmeruga
---------- Post updated at 05:31 AM ----------...
---------- Post updated at 05:31 AM ---------- Previous update was at 05:28 AM ----------


#!/usr/bin/expect
spawn telnet 172.20.253.112
expect "login:"
send cipxxx\r
expect...
4,538
Posted By vsmeruga
Connect to Server B from Server A and Archive the file
Hi

I need to connect to a ServerB from Server A
eg: Server A : 172.20.273.51, un: xxx, pwd: xxx
Server B: 172.20.273.51, un:yyy, pwd: yyy

Need to copy the files(with name starts...
7,479
Posted By vsmeruga
Please suggest answer to the below method as posted before
Hi

I have created .netrc file and given permissions to it as chmod 600 .netrc
As it is a . file, not able to see it on the directory(fine).

Please tell me now. How to use that file in my FTP...
7,479
Posted By vsmeruga
.netrc file created
Hi

I have created .netrc file and given permissions to it as chmod 600 .netrc
As it is a . file, not able to see it on the directory(fine).

Please tell me now. How to use that file in my...
7,479
Posted By vsmeruga
function Main { Init while IFS="," read host...
function Main {
Init
while IFS="," read host acct pass
do
FTP "$host" "$acct" "$pass" "$comd"
done < $filename
}

---------- Post updated at 05:32 AM ---------- Previous update was at 04:01...
7,479
Posted By vsmeruga
#!/usr/bin/ksh export...
#!/usr/bin/ksh
export filename=/grid/PowerCenter/AT/filelist.txt
export SOURCE_DIR=/grid/PowerCenter/AT
export ICOMS_FTP_TGT_DIR1=/dwinput/AT/ICOM_SERV1
export...
7,479
Posted By vsmeruga
I have zero knowledge in perl. And the scripts i...
I have zero knowledge in perl. And the scripts i have to be implemented in Unix Shell

Thanks for the reply

---------- Post updated at 09:48 AM ---------- Previous update was at 09:47 AM...
7,479
Posted By vsmeruga
Help with Shell script for FTP
#!/usr/bin/ksh
export filename=/grid/PowerCenter/inbound/AT/filelist.txt
export SOURCE_DIR=/grid/PowerCenter/inbound/AT
export ICOMS_FTP_TGT_DIR1=/dw/input/ATU/ICOM_SERV1
export...
5,132
Posted By vsmeruga
Same thing happens not executing the cmd
Hi Sorry to say that,

It does the same thing when i used quit instead of bye
5,132
Posted By vsmeruga
etl-kn-t2-etluser :ftp -i 172.22.234.55 user...
etl-kn-t2-etluser :ftp -i 172.22.234.55
user cipxfer pass sp1d3r
cd /dw/cdrsp/stage/velocity/vmedia/input/ATRPU
put IMF_ATRPU_13022010161626.csv
bye
5,132
Posted By vsmeruga
not able to execute the code on command line
ftp -i -nv 172.22.234.55 <<EOF
user cipxcd pass spffg
cd /dw/cder/stage/vel/srtdia/input/ATRPU
ascii
mput IMF_ATRPU_13022010161139.csv
bye
EOF
5,132
Posted By vsmeruga
Script running stops at a point
---------- Post updated at 10:40 AM ---------- Previous update was at 10:22 AM ----------
5,132
Posted By vsmeruga
Hi Unix guru's, I believe Jit is very Busy...
Hi Unix guru's,

I believe Jit is very Busy and he helped me to come till this point.Can any one help me on this as it is urgent.

Thanks,
meruga

---------- Post updated at 08:50 AM...
5,132
Posted By vsmeruga
Hi Jit, I am very sorry. I am really not so...
Hi Jit,

I am very sorry. I am really not so good in understanding unix part. I could not understand what you are suggesting.

Please can you be more clear in your comments.

Thanks,
Vijaya...
5,132
Posted By vsmeruga
Hi Jgt, i tried the below script as you...
Hi Jgt,

i tried the below script as you suggested. But i am not able to work it out.

When i run the script, It stops at the Message: "FTPing the file from the server". not going further. Please...
1,680
Posted By vsmeruga
you are right thanks.
you are right thanks.
1,680
Posted By vsmeruga
Problem using exit(1)
Hi All,

i have a script named as 1. scr_FTP.sh, it calls the script(2)
2. file_create.sh

And in that 2nd script, i use the below function run_complete_workflow().

I introduced exit(1)...
2,819
Posted By vsmeruga
Hi friends, I tried the below and got error...
Hi friends,

I tried the below and got error message as

1.) Tgtreccnt=cat `ls /grid/PowerCenter/stage/velocity_r3_dev/outbound/ATRPU/archive/IMF_ATRPU_*.csv | tail -1`|wc -l

Error msg:
...
2,819
Posted By vsmeruga
HI All My Requirement is I have source...
HI All

My Requirement is

I have source file directory and Target file directory.

1. From the list of files in source file directory, From the first file i should get the count of records....
2,819
Posted By vsmeruga
Not able to get result to unix variables
I am trying to get the Srcreccnt and Tgtreccnt from unix files and update the oracle table.

But i get the below error:

ERROR at line 1:
ORA-00936: missing expression

update...
5,132
Posted By vsmeruga
Hi Jgt, Thank you very much. I will try it...
Hi Jgt,

Thank you very much. I will try it tomorrow at office.

As per my understanding, this script reads a file: filelist.txt
and pass the 3 parameters(24 lines, 24 times) to the calling...
5,132
Posted By vsmeruga
Sending a file to 24 Server locations parallely
Hi All,

I have to send a processed file to 24 different server locations. I feel, if this job can be done parallel in the background - Time will come down.

I found the script to FTP the file...
1,816
Posted By vsmeruga
Thank you very much. I will try it.
Thank you very much. I will try it.
1,816
Posted By vsmeruga
To Get 1st record from 1st file from list of files
Hi

I am trying this cmd and getting

1st file path from list of files(abc2020.txt, abc1010.txt,abc3030.txt):

ls /grid/abc*.txt | head -1

Result for above cmd:

/grid/abc1010.txt
...
2,869
Posted By vsmeruga
Archiving the Files in a folder
My requirement is to put all the files from output directory(ATT) to archive directory(archive\) creating a new
folder with datetimestamp(20100212_120014) every time it runs.
where...
Showing results 1 to 25 of 30

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