Search Results

Search: Posts Made By: Ekamjot
2,652
Posted By Ekamjot
so i need to add LC_TIME in the beginning of the...
so i need to add LC_TIME in the beginning of the script??
2,652
Posted By Ekamjot
One question : 1) what if instead of...
One question :

1) what if instead of awk'{print $9}' i try using awk'{print $8}'

2) Will adding the line
LC_TIME=en_US.UTF-8 in the beginning of the script will suffice??
2,652
Posted By Ekamjot
Please find the output ++ export...
Please find the output
++ export PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/sar
++ PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/sar
++ ADMIN=abc@abc.com
+++ /usr/bin/sar
+++ /usr/bin/awk '{print...
2,652
Posted By Ekamjot
Hi have added the option set -o xtrace. ...
Hi have added the option

set -o xtrace.

But i am still getting the same output.
2,652
Posted By Ekamjot
Even after adding the sar path in the export does...
Even after adding the sar path in the export does not resolve the issue. I have removed $PATH from the end.

Still getting the same error. Please assist.

This is the entry in the cron tab

41...
2,652
Posted By Ekamjot
Error while running a script through cron job
Hi Team,

When i am running the below query manually it is giving me the right output
i.e.
export PATH=/usr/sbin:/usr/bin:/sbin:/bin:$PATH
ADMIN=abc@abc.com
CPU_HIGH=`sar|awk '{print $9}'|sort...
1,256
Posted By Ekamjot
Thanks a lot it worked. But now i want to...
Thanks a lot it worked.

But now i want to fetch the last few lines of /etc/sudoers file in this at the end for the same remote server.

How can i get that in the same server. i am trying to use...
1,256
Posted By Ekamjot
I have tried like this ssh...
I have tried like this

ssh username@ipaddress 'for i in $( cat /etc/passwd| cut -d: -f1);do groups $i done' >>abc.txt

it gave me the below error

bash: -c: line 1: syntax error: unexpected...
1,256
Posted By Ekamjot
To get total number of users and their groups in remote UNIX machine
Hi All

I am trying to do ssh to different server and on the remote server for each user trying to get groups of that user but i am not getting the required
result.

ssh username@ip_address ...
1,779
Posted By Ekamjot
Hi Don, Thanks that worked like a charm. ...
Hi Don,

Thanks that worked like a charm.

I have developed my script. Now i need to format it to give a profeessional look as this needs to be presented to the client. Could you please hlep me...
1,779
Posted By Ekamjot
Checksum Comparison and listing out the differences
Hi All,

We have a requiremetn where i have created a shell script that will compute the checksum of remote directoryand the local directory files
and get those details in two different files in...
Showing results 1 to 11 of 11

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