Search Results

Search: Posts Made By: ahamed
48,289
Posted By ahamed
Hi, I am not suppose to post the content bcos...
Hi,
I am not suppose to post the content bcos it contains some confidential data like IP address. Its against my company policy.
Is there any other way to solve this?
out of 4 server,1 server is...
48,289
Posted By ahamed
Host Key verification failed
Hi,
I am running a script to scp a file from one server to another.
I have created the public/private key and copied the public key to the other server and appended it to authorized_key file.
But...
1,534
Posted By ahamed
scp using script
Hi,
I have to copy a file from one server to another server daily using a script.How can i perform this operation. Can somebody help with the code.

Regards,
Ahamed.
4,652
Posted By ahamed
Exporting .csv file into mysql server 2005 using script.
Hi,
I have a .csv file created by a script with data in a tabular format.
I need to insert all the value into mysql database which is running in a different machine.

what is the command to...
2,062
Posted By ahamed
sending attachement in mail
Hi ,
I am using the below code to send mail through a script which run as a cron job.

msgdate=`date +"%a, %e %Y %T %z"`
daemail=$(cat <<!
From: $from
To: $emailtarget
Subject: $subject...
4,743
Posted By ahamed
What is max MEM% in top command?
HI,
When i use the top command in Linux I get the below values.

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

What is the maximum MEM% that will occur. I got once 303% ....
19,061
Posted By ahamed
adding multiple email ID
Hi,
I have a script running as a cron job. Is it possible to send the output to multiple user through mail. I cant add multiple mail id.

_TOADDR=xxx@xxx.com;xxx@xxx.com
_FROMADDR=xxx@xxx.com
...
1,801
Posted By ahamed
Hi, I am able to get the sar report. from the...
Hi,
I am able to get the sar report. from the sar.txt i not able to get the value after using tail,cut etc command. I am able to see sar report in sar.txt

Ahamed.
1,801
Posted By ahamed
script line not working properly
Hi ,
I am using the below command in script. $_IDLETIME is returning value if i execute the script manually.

sar > $_LOCATION/sar.txt

_IDLETIME=`tail -2 $_LOCATION/sar.txt | head -1 | tr -s '...
4,509
Posted By ahamed
Problem with sar command in cron job
HI,
I have a problem with 'sar' command.
I am using the sar comman in script.when i execute the script manually using ./filenae, i am getting the desired output.
But when i put the script in cron...
3,945
Posted By ahamed
Thanks guys.. Now its working fine
Thanks guys..
Now its working fine
3,945
Posted By ahamed
the directory name is healthcheck.log. since i...
the directory name is healthcheck.log. since i want the directory to be created in /apps/cron/ i am appending the exact location.

$_LOGFILE is a log file which i have given the entire path in user...
3,945
Posted By ahamed
even after changing it to -e still getting the...
even after changing it to -e still getting the same error..
is there any other command to check for directory exist and create it if now..
3,945
Posted By ahamed
Cannot create a directory
Hi,
I am using the following command to check weather directory exists , if not i am creating a directory.


if [ -d /apps/cron/healthcheck.log ]
then
echo "directory already exsist"
else
...
4,041
Posted By ahamed
Hi, Its a local user.I want to send mail...
Hi,

Its a local user.I want to send mail withing my company even thought the server is connected to internet.

Ahamed.
9,064
Posted By ahamed
Getting yesterday `date`
Hi,

`date` command will give the current days date.

Is there any command to get the previous day date?
I need the previous day value in my script.

Ahamed.
4,041
Posted By ahamed
Configuring sendmail option
Hi,

I have a script which check for the health of an application. In the end I want to attache a file to send the information to the user using sendmail.

How to configure sendmail in linux?How...
2,111
Posted By ahamed
Thanks buddy! It was working fine :)
Thanks buddy!
It was working fine :)
2,111
Posted By ahamed
Unable to add user defined variable
Hi,
I have a user defined variable _TIME1=xxx
I am using awk command for pattern matching.

cat $_LOCATION/catalina.txt | awk '/^`$_TIME1`:??:??/'

It not taking the value of $_TIME!
eg:I am...
11,133
Posted By ahamed
The logs contain lines like 06:19:01,256...
The logs contain lines like

06:19:01,256 [Task Engine Worker 1] ...

06:19:01,402 [Task Engine Worker 3]...

I need to get all the lines between 06:00:00 to 07:00:00

can someone help me...
11,133
Posted By ahamed
Hi, I think the awk library is not installed in...
Hi,
I think the awk library is not installed in my system. I tried executing the command but i m not getting any output.

Is there any other command to get logs between two time frame. The time...
11,133
Posted By ahamed
Getting logs between two times
Hi,
I need to read log file for the period between two time frame.eg all those logs between 3AM to 4M.
Any command to use for the shell scripting?

Ahamed
9,480
Posted By ahamed
Getting source code of a page
I want to download a particular page from the internet and get the source code of the page in html format.

I want to parse the source code to find a specific parameters using grep command.
...
1,987
Posted By ahamed
when i used the below command. lwp-request...
when i used the below command.

lwp-request -sd http://webpage
it says command not found.
could you clarify the command once.

Regards
Ahamed
1,987
Posted By ahamed
Checking response of the web page?
Hi,
I need to check the response of the web page without downloading any content. I used the below command.

_website=http://xxx.xxx.com
wget --spider --user=username --password=password...
Showing results 1 to 25 of 36

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