Search Results

Search: Posts Made By: AraR87
1,442
Posted By AraR87
Thanks. But my sample.dat.gz file will have...
Thanks.
But my sample.dat.gz file will have the data as below.

01|US|45|03/17/2016|
01|US|20|03/17/2016|
01|US|785|03/17/2016|
01|US|15|03/17/2016|
1,442
Posted By AraR87
Read a value from a file
Hello All,

I am having the below txt file.


stores.txt
12
15
45
45
50
.
.
.
.
4564


Now I need to execute the below command to check whether the above...
1,672
Posted By AraR87
Help in awk
Team,

I have a file as below in unix:-2644|4578994566|US|sample|car street|4578.|1002|
2645|4578994566|US|sample|car street|4578.|1007|
2646|4578994566|US|sample|car street|4578.|1006|...
1,819
Posted By AraR87
No. i tried using -B option as well. but i am...
No. i tried using -B option as well. but i am getting the error "could not read the batch file, file: --password=765a". Please advise


sftp -B --password=$PASSWORD USERNAME@test.server.com#2200...
1,819
Posted By AraR87
SFTP error
Hello Guys,

i am trying to connect to one server using SFTP, but i am getting the below error message.


tcgetattr failed in ssh_rl_set_tty_modes_for_fd: fd 1: Not a typewriter

error:...
1,674
Posted By AraR87
Thanks Kumaran. but i am getting as below without...
Thanks Kumaran. but i am getting as below without pipe (|) for last one. but i need pipe(|) in the last as well.

15|US|121
15|US|122
15|US|123
1,674
Posted By AraR87
Need an help in awk
Guys,

i have an input file as below


15|121|US|03/12/15|Y|
15|122|US|03/12/15|Y|
15|123|US|03/12/15|Y|


but i need the output as below using awk command


15|US|121|...
76,513
Posted By AraR87
Hi... i have generated public and private...
Hi...

i have generated public and private keys. now i am not sure how to proceed further. can you please help me on this.

Thanks
76,513
Posted By AraR87
SFTP without prompting password
Dear unix experts,

i have a requirement as below.

i need to use SFTP as FTP.


ftp -n -v << ENDFTP
open test_ftp.server
user ftp_user_name ftp_password
quit
ENDFTP


if i use...
1,293
Posted By AraR87
HP-UX
HP-UX
1,293
Posted By AraR87
Help in awk
Guys,

I have a requirement as below.

I need to ping one server and check if its up or down based on the ping results.
for example,


ping sample2013


Result:

64 bytes from...
8,295
Posted By AraR87
try using, for HOST in $FILEName do ...
try using,

for HOST in $FILEName
do
code here
done
14,002
Posted By AraR87
My share would be, //test1000/Sample ...
My share would be,

//test1000/Sample

test.xls

This is the windows path where i will place my excel file (test.xls)

Now i want to get this file to my unix server using shell script. ...
1,198
Posted By AraR87
stored values in the variable ATTACH ...
stored values in the variable ATTACH
ATTACH=${LNXLOG:-}

In the if condition you are checking the below,

[ ! -z $ATTACH} --> length of the ATTACH is non zero, and checking the ATTACH is a...
2,060
Posted By AraR87
seems, here is the issue datestamp=`date...
seems, here is the issue

datestamp=`date '+%Y%m%d'
( mentioned as Year,Month and date)

please change and try.
14,002
Posted By AraR87
Ftp from UNIX to windows share
Unix Expects,

I am trying to connect to Unix server to windows share point using ftp or fstp. I want to get excel file from windows share to unix server.
But i am not able to do it. Can you...
1,109
Posted By AraR87
Please show us your code.
Please show us your code.
6,333
Posted By AraR87
Try, mv Template_server1* Server1 mv...
Try,

mv Template_server1* Server1

mv Template_server2* Server2

Make sure you created Server1 and Server2 directories in the same path.
31,159
Posted By AraR87
If condition to check null variable
Guys,

Please help me on the below


sample.cfg
var=NULL



sample.sh
#!/bin/sh
. /sample.cfg
if [ $var -eq NULL ];then
1 st command here
else
2 nd command here
fi
2,563
Posted By AraR87
Try , function check_deplver { ...
Try ,

function check_deplver
{

here your code

}
1,146
Posted By AraR87
UNIX shell script for loop issue
Guys,

Please help on the below.

sample.prm

/u/test/:
mail=123@gmail.com
purgedays=30
zipdays=7
purgefile=log.gz
zipfile=log

/u/test/:
mail=123@gmail.com
purgedays=30
...
2,573
Posted By AraR87
Sorry.Now i have corrected it. Please check
Sorry.Now i have corrected it.

Please check
2,573
Posted By AraR87
UNIX for loop
Guys,

Please help me on the below..


sample.prm

/u/test/:
mail=123@gmail.com
purgedays=30
zipdays=7
purgefile=log.gz
zipfile=log

/u/test/:
mail=123@gmail.com
...
2,179
Posted By AraR87
Shell script
Guys,
Here is my requirement..
i have a cfg as below

example.cfg
LOG_PATH=/u/sample/sample.log
PATH=/u/sample/
MAIL=sample@gmail.com
ZIP_DAYS=7
PURGE_DAYS=30
...
2,977
Posted By AraR87
Will this consider both the pattenrs? ...
Will this consider both the pattenrs?

"*log.gz" -o -name "*txt.gz"

-o is OR or AND

Thanks
Showing results 1 to 25 of 53

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