Search Results

Search: Posts Made By: dr46014
2,731
Posted By dr46014
awk '/^wd:address_line_/{$2="Test data"}1' RS=\<...
awk '/^wd:address_line_/{$2="Test data"}1' RS=\< ORS=\< FS=\> OFS=\> file.xml

samething i am doing for national_id but both national_id and national_id_type is getting replaced. I need only one to...
2,731
Posted By dr46014
awk: cmd. line:1: warning: escape sequence `\>'...
awk: cmd. line:1: warning: escape sequence `\>' treated as plain `>'
awk: cmd. line:1: warning: escape sequence `\<' treated as plain `<'
2,731
Posted By dr46014
Regex Expression Replace
I have a XML file where there is a tag with like

<wd:address_line_1>1234 Street</wd:address_line_1>

I want to replace the values "1234 Street" with "Test Data". Different people have different...
1,181
Posted By dr46014
When i try to ssh its asking for password and...
When i try to ssh its asking for password and when i give the password its working fine.But i want a passwordless connection
1,181
Posted By dr46014
SSH Connectivity
I am trying to setup a password less connection from a Linux server to Window server and will be using a script to scp a file without using password.

Linux Server (source)

servername :...
3,373
Posted By dr46014
i did a small correction.sorry abt the last post ...
i did a small correction.sorry abt the last post

Thanks ..confusion solved
3,373
Posted By dr46014
Multiple conditions inside if statement
I was trying to write multiple conditions inside the if statement but its not working.

export VAR_NM=abc.txt
export CURR_DT=20131011
export PREV_DT=20131012

if [ ! -z "$VAR_NM" ] && [...
9,903
Posted By dr46014
thanks !! Any other log which says from which...
thanks !!
Any other log which says from which zone to which zone the change was made that will be helpful
9,903
Posted By dr46014
Log for Timezone change in unix server
There is a unix server where the time zone has been changed from EST to CST.Can we get any kind of log when it was changed anywhere in the unix machine. Also the path for the same.

If there is any...
4,994
Posted By dr46014
i am still not able to do.If you can let me know...
i am still not able to do.If you can let me know how to place the piece of code it will be great.
4,994
Posted By dr46014
In our environment users dont have direct access...
In our environment users dont have direct access to unix box.They will run a shell script using their old and new password and they will reset their password.So the paramters are old and new password...
4,994
Posted By dr46014
i tried with exit but still its not working. ...
i tried with exit but still its not working.

Below is the error :

$spawn ./ldap_pwd_prompt.ksh
sh: /usr/local/bin/stty: not found
Enter existing login password:
New Password:
Re-enter new...
4,994
Posted By dr46014
Automating Interactive password change
I have written the below scripts .


ldap_pwd_prompt.ksh
#!/usr/bin/ksh
passwd -r ldap

interactive_pwd_change.exp
#!/usr/local/bin/expect
set timeout 10
set curpass [lindex $argv 0]
set...
1,756
Posted By dr46014
yes sun solaris in our env we dont use...
yes sun solaris

in our env we dont use sudo.we have role ids and we use the below command

individual id >

su - roleid
passwod:

roleid >
1,756
Posted By dr46014
Capture the original user
in our environment role ids are created in unix to which user does su.
say my individual id is drout and a role is devid.

i will login to drout
the su - devid
password : <nothing > password...
1,585
Posted By dr46014
Date conversion in ab i
(string(8)) ((date("YYYYMMDD")) ((date("YYYY/MM/DD")) in.date_field_name))
4,094
Posted By dr46014
while read x do if [ `grep -c abc.dml $x` -ne...
while read x
do
if [ `grep -c abc.dml $x` -ne 0 ]
then
echo $x >> testfile
fi
if [ `grep -c xyz.dml $x` -ne 0 ]
then
echo $x >> testfile
fi
done < list_of_files
4,094
Posted By dr46014
script to search patterns inside list of files
>testfile

while read x
do
if [ `grep -c abc.dml $x` -ne 0 ] then
echo $x >> testfile
else
fi
if [ `grep -c xyz.dml $x` -ne 0 ] then
echo $x >> testfile
else
fi
done < list_of_files

is...
1
5,463
Posted By dr46014
ksh -c
in my environment i found many scripts executed with "ksh -c" command.
What does -c stands for and how this is different executing with only ksh??
2,295
Posted By dr46014
thanks a ton...
thanks a ton...
2,295
Posted By dr46014
find a pattern and replace
i have a file which contains lines like this.

intsrcrpttrn1099mctrl:export GRAPHPARM_AR[1]="-input_code M302023"
intsrcrpttrn1099mload:export GRAPHPARM_AR[1]="-input_code M192023"...
4,558
Posted By dr46014
i am getting the below error Host key...
i am getting the below error
Host key verification failed
Couldn't read packet: Connection reset by peer
4,558
Posted By dr46014
SSH : File transfer
We have tow servers.One Linux server (A) and one unix server (B).
How can i set up so that files can be sftped from A to B.

Please let me know the steps
2,322
Posted By dr46014
key word parameter
cat shell_script.ksh
x=$A
y=$B
export x
export y
echo $x
echo $y


when i am running this with a command

ksh shell_script.ksh -A 10 -B 20

its not showing anything ....
could you let...
12,891
Posted By dr46014
i found the solution...we can run the code very...
i found the solution...we can run the code very well if we remove !/usr/bin/ksh .... but i want to understand the reason for this.

Both the scripts are working individually and if i invoke ksh...
Showing results 1 to 25 of 118

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