Search Results

Search: Posts Made By: Pradeep_1990
4,542
Posted By Pradeep_1990
Thanks . Will try the same . Regards, ...
Thanks . Will try the same .

Regards,
Pradeep
4,542
Posted By Pradeep_1990
Hi Aia , Thanks for the replies . I have got...
Hi Aia ,

Thanks for the replies . I have got it working by directing the script to /dev/null (solution got from unix.com forum ).



ssh user@$host2 "/home/user/prod_work/xyz.sh > /dev/null"
...
4,542
Posted By Pradeep_1990
Yes . Sorry... I'm not in a position to show the...
Yes . Sorry... I'm not in a position to show the script for security reasons but it is a simple script only and it is successfully executed nevertheless .

Thanks,
Pradeep
4,542
Posted By Pradeep_1990
Yes , the ssh connection is passwordless . I...
Yes , the ssh connection is passwordless . I achieved that using the below :

SSH login without password (http://www.linuxproblem.org/art_9.html)

When I execute abc.sh in server "host1" , the...
4,542
Posted By Pradeep_1990
Sorry..I actually pasted the code wrong ..It is ...
Sorry..I actually pasted the code wrong ..It is



ssh user@$host2 "/home/user/prod_work/xyz.sh"


But even then the issue remains .
4,542
Posted By Pradeep_1990
Exiting the Remote server after script execution
Hi All ,

I'm running a script abc.sh in server "host1" shown as below :



#! /bin/bash

sh stop.sh

ssh user@$host2 "/home/user/prod_work/xyz.sh;

sh start.sh




The problem I...
16,453
Posted By Pradeep_1990
Or u can also use date --date='1 year ago'...
Or u can also use

date --date='1 year ago' +%Y
1,621
Posted By Pradeep_1990
Thanks a lot Scrutinizer and Yoda..
Thanks a lot Scrutinizer and Yoda..
1,621
Posted By Pradeep_1990
Thanks a lot Scrutinizer and Srini.Both the...
Thanks a lot Scrutinizer and Srini.Both the scripts work but possible to make my code work with any modification ??just curious..
1,621
Posted By Pradeep_1990
Deleting selected lines in a file
Hi Guys ,

I have two files say a1 and a2 having following contents

a1
dag
wfd

a2
dag
wfd
chire
hcm

I want to delete only the lines in a2 which are in a1 and final output of a2...
Forum: Red Hat 06-18-2014
2,750
Posted By Pradeep_1990
Sorry for bumping up the post twice..Apologies...
Sorry for bumping up the post twice..Apologies for that..

Yes..U r rite..I am trying to figure out if the web browser has finished loading a page I want to view in my browser .

---------- Post...
Forum: Red Hat 06-18-2014
2,750
Posted By Pradeep_1990
Getting the response code and to know whether web site is loaded
Hi Guys,

Is there any way that we can know whether a website is fullly loaded with Linux command line ?? is there any command in Linux that can achieve that ??

Also,naturally I would also like...
1,415
Posted By Pradeep_1990
Thanks a lot RudiC..:)
Thanks a lot RudiC..:)
1,415
Posted By Pradeep_1990
Help with scripting-->Inserting a line before a pattern
Hi Guys,

I have written the following script test.sh in Linux .

read -p "Please enter the name of the application: " DIRTOCREATE

read -p "Please enter the number of associates to be given...
3,122
Posted By Pradeep_1990
Thanks Balajesuri and Yoda..:)
Thanks Balajesuri and Yoda..:)
3,122
Posted By Pradeep_1990
Adding lines at a particular location in a file.
Hi Experts,

Let us take a text file,say items.txt having the following data

jar
bottle
gum

tube
cereal
bag

I want to add the content of items.txt to another file say

#many lines...
22,068
Posted By Pradeep_1990
Thanks all..:)
Thanks all..:)
996
Posted By Pradeep_1990
It worked.. Thanks a lot.. one doubt...
It worked..

Thanks a lot..

one doubt though..What does the sed "-e" do ?
996
Posted By Pradeep_1990
Replacing a string
Hi All,

I have a many folders in a directory under which there are many subdirectories containing text files containing the word "shyam" in them.I want all the files in all the directories...
5,180
Posted By Pradeep_1990
Thanks a lot balajesuri and Corana688..:) ...
Thanks a lot balajesuri and Corana688..:)

Owe you guys a lot.
5,180
Posted By Pradeep_1990
But on executing this "$(date --date="1 month...
But on executing this "$(date --date="1 month ago" +%Y%m)" it is giving

$ "$(date --date="1 month ago" +%Y%m)"
-bash: 201402: command not found
5,180
Posted By Pradeep_1990
Great..Thanks a lot in2nix4life.. It would...
Great..Thanks a lot in2nix4life..

It would be helpful for me if you could just split and explain the command.

Thanks again..:)
5,180
Posted By Pradeep_1990
Getting the previous month as input for the script
Hi Experts ,

I have scheduled a script "createstructure "in crontab. The script runs every month on 25th .
I am trying to pass the input to the script as the <year><previousmonth>.For example...
11,117
Posted By Pradeep_1990
Getting " Unterminated quoted string"
Hi Guys,

When I am executing the script

#! /bin/bash
SARBACKUPS=/home/pradeep/sarBackups

cd /var/log/sysstat

ls -1t sar* | while read SARNAME

do
cp -p "$SARNAME" $( echo...
22,068
Posted By Pradeep_1990
Thanks a lot for the reply guys..:)
Thanks a lot for the reply guys..:)
Showing results 1 to 25 of 28

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