Search Results

Search: Posts Made By: mjavalkar
2,907
Posted By mjavalkar
It worked. Thanks.
It worked. Thanks.
2,907
Posted By mjavalkar
It is displaying the output as 'no crontab for...
It is displaying the output as 'no crontab for root' in the console. I want to redirect this output also to the variable.
2,907
Posted By mjavalkar
How to redirect 'crontab' output to a variable?
I'm trying to redirect the output of crontab to a variable named "crontab_status" as below:


crontab_status=$(crontab -l)


executing the script is not redirecting to the variable. Please help!
7,321
Posted By mjavalkar
How to use variables in 'sed' append command?
HELLO!!

I'm trying to pass a variable with in the 'sed' command (which would add some piece of code to file at a particular line). We can use


sed '{line-number}a\
alfjaljf\
aslfjsfsjafl\...
1,871
Posted By mjavalkar
Thanks but still the above is failing. What is...
Thanks but still the above is failing. What is the variable 's' in highlighted code above? From where does 's' value gets?
1,871
Posted By mjavalkar
It's only working for the sample xml code...
It's only working for the sample xml code provided. My actual code is of 2000 lines among which few <entity> tags doesn't have the <prerequisite> tag. The Command should not returns the <name> tags...
1,871
Posted By mjavalkar
The command is returning the result in one column...
The command is returning the result in one column but not in the format that I've provided. Please check and confirm.
1,871
Posted By mjavalkar
Hi It works fine. Thank you. Apologize to...
Hi

It works fine. Thank you. Apologize to bother you again.

I've got an another scenario to read values. Please find the below sample xml code:


<entity>
<name>Testing</name>
...
1,871
Posted By mjavalkar
Hi Thanks for the update. A small update...
Hi Thanks for the update.

A small update that if I don't want to read the values of <name> of <entity> in which <template> doesn't present. Could you help??

---------- Post updated at 03:26 PM...
1,871
Posted By mjavalkar
how to read the variable from tags based on appropriate tag
Hi,

I've got a situation where I need to read the values from XML tags in a file. Please find the sample xml code below:


<entity>
<name>Testing</name>
<number>11</number>
...
3,846
Posted By mjavalkar
Here you go!! echo "Selected the...
Here you go!!


echo "Selected the option to Upload file"
echo " "
echo "Provide the complete path of the filename to upload to s3"
read upload_path
...
3,846
Posted By mjavalkar
if I try the command outside of the script as...
if I try the command outside of the script as below, it is working fine:

s3cmd put /home/eng/test.file s3://mybucket/
3,846
Posted By mjavalkar
how to pass variables to s3cmd in a script file
Hi All,

How to pass the variable to s3cmd put command? I'm trying to use this command in a script as below:


s3cmd put ${upload_path} s3://${upload_dest}


where


With the above command...
6,494
Posted By mjavalkar
How to add the multiple lines of xml tags before a particular xml tag in a file
Hi All,

I'm stuck with adding multiple lines(irrespective of line number) to a file before a particular xml tag. Please help me.


<A>testing_Location</A>
<value>LA</value>
<zone>US</zone>
...
2,893
Posted By mjavalkar
If the code is : <Universal>DKDKJSKJW ...
If the code is :


<Universal>DKDKJSKJW
</Universal>
<Universal>KDJEIDKDKD
</Universal>
<Universal>KELMSDNXN
</Universal>


then I need an output as


Help!!!!
2,893
Posted By mjavalkar
How to retrieve the value from XML tag whose end tag is in next line
Hi All,

Find the following code:

<Universal>D38x82j1JJ
</Universal>


I want to retrieve the value of <Universal> tag as below:


Please help me.
1,722
Posted By mjavalkar
if the code is in the following: ...
if the code is in the following:


<name>Email Address Encryption</name>
<className>com.ciphercloud.tokenizers.impl.EmailAddressEncryptorImpl</className>
<tokenWrapConfig>
...
1,215
Posted By mjavalkar
how to retrieve specific parameters using a xml tag
Hi,

I have the following code in my xml file:


<aaaRule loginIdPattern=".*"
orgIdPattern=".*" deny="false" />
<aaaRuleGroup name="dpaas">
<aaaRule loginIdPattern=".*" orgIdPattern=".*"...
1,722
Posted By mjavalkar
Throwing the following error while executing the...
Throwing the following error while executing the awk command:
1,722
Posted By mjavalkar
awk to retrieve the particular value from a same list of xml tags
Hi All,

I have the following code in one of my xml file:


<com:parameter>
<com:name>secretKey</com:name>
<com:value>31XA874821172E89B00B1C</com:value>
</com:parameter>
<com:parameter>...
13,126
Posted By mjavalkar
I've done a small change in the code. Please find...
I've done a small change in the code. Please find it:


trust_file=trusted-ip-list.txt
ip_file=ip-list.txt

while read ip
do
test=`grep -w "$ip" $ip_file`
echo "The value of...
13,126
Posted By mjavalkar
how to read the contents of two files line by line and compare the line by line?
Hi All,

I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named...
Forum: Red Hat 04-05-2012
1,000
Posted By mjavalkar
how to setup An extra account with name 'unixuser' who can have the previlege to reset other users?
Hi

I want to setup an extra account with name 'unixuser' who has the previlege to reset the passwords of other users like eng or myuser (other user).

Please help me.. Waiting for a reply..
...
1,886
Posted By mjavalkar
I have a service running with test1.. The tag...
I have a service running with test1.. The tag added is of watchdog related config.. I'm checking the health status of the test1 process using watchdog. I need to display whether the process test1 is...
1,886
Posted By mjavalkar
Extracting the value of an middle attribute tag from XML
Hi All,

Please help me out in resolving this..

<secondTag enabled='true' processName='test1' pidFile='/tmp/test1.pid' />

From the above tag, I'm trying to retrieve the value of enabled and...
Showing results 1 to 25 of 25

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