Search Results

Search: Posts Made By: manalisharmabe
Forum: Linux 06-12-2014
5,787
Posted By sea
AFAIK: Arch uses AUR packages, at least if its...
AFAIK: Arch uses AUR packages, at least if its Arch only.

Other than that, how about:
su -
yum update openssl

Since Fedora Rawhide (devel) already provides: openssl-1.0.1h-3.fc21.x86_64
I'd...
1,244
Posted By Makarand Dodmis
ok :) will avoid henceforth
ok :) will avoid henceforth
1,244
Posted By chacko193
What it does is run the rsync command and save it...
What it does is run the rsync command and save it output to the log file. It also saves the exact command that is executed, i.e., the arguments that is passed to the rsync and "Done" when the command...
1,244
Posted By Makarand Dodmis
Hi Manali Looks like there shell script...
Hi Manali

Looks like there shell script rsync under directory /usr/local/bin/. and
-a -pdt -v --stats are parameters to shell script rsync

if possible please go through shell script rsync
3,376
Posted By Makarand Dodmis
Hi Manali ps -ef | grep bpbkar | nawk '{print...
Hi Manali
ps -ef | grep bpbkar | nawk '{print gsub(/server1-backup/," ",$0)}'
is working perfectly fine on my system.

Only diff is i am using KSH & you are BASH

Please check how gsub awk...
3,376
Posted By pravin27
Why can't you create wrapper on your process...
Why can't you create wrapper on your process "bpbkar"
something like this

#!/bin/bash
bpbkar -r 2678400 -ru root -dt 47395 -to 0 -clnt server1-backup-class server1 &
pid=$!
echo "Server1...
3,376
Posted By Scrutinizer
Or maybe just: if ps -ef | /usr/xpg4/bin/grep...
Or maybe just:
if ps -ef | /usr/xpg4/bin/grep -q "server1-backup"
then
message='still running'
else
message='completed!'
fi
echo "Server1 Weekly backup $message" | mailx -s "Server1...
3,376
Posted By Makarand Dodmis
can you show your shell script server1_weekly_3rd
can you show your shell script server1_weekly_3rd
3,376
Posted By Makarand Dodmis
have u use below code? #!/bin/bash #...
have u use below code?

#!/bin/bash
# Script to check if Server1 backups still running.
if [ `ps -ef | grep bpbkar | nawk '{print gsub(/server1-backup/," ",$0)}'` -eq 1 ]
then
echo "Server1...
3,376
Posted By Makarand Dodmis
yes.Above code looks fine to me... ...
yes.Above code looks fine to me...

---------- Post updated at 04:53 AM ---------- Previous update was at 04:52 AM ----------

Sorry misread it.Use below code

#!/bin/bash
# Script to check...
3,376
Posted By Makarand Dodmis
gsub replaces all of the longest, leftmost,...
gsub replaces all of the longest, leftmost, nonoverlapping matching substrings it can find. The `g' in gsub stands for "global," which means replace everywhere,

So if in your output...
3,376
Posted By Makarand Dodmis
if [ `ps -ef | grep bpbkar | nawk '{print...
if [ `ps -ef | grep bpbkar | nawk '{print gsub(/server1-backup/," ",$0)}'` -eq 1 ]
then
uuencode filename output.log| mailx -s " SUBJECT" -r abc@company.com
fi

if you want condition
...
3,376
Posted By Makarand Dodmis
ps -ef | grep bpbkar | grep server1-backup >...
ps -ef | grep bpbkar | grep server1-backup > output.log

uuencode filename output.log| mailx -s " SUBJECT" -r abc@company.com (abc@company.com)



try this
Forum: Solaris 01-29-2014
11,456
Posted By MadeInGermany
/usr/ccs/bin/make and /usr/xpg4/bin/make are...
/usr/ccs/bin/make and /usr/xpg4/bin/make are identical. (/usr/share/lib/make is a directory.)
There might be /usr/sfw/bin/gmake (GNU make).
And /usr/sfw/bin/gcc.
sfw means "Sun Free Ware" but is...
Forum: Solaris 01-29-2014
11,456
Posted By Scrutinizer
Did you check the other options first?
Did you check the other options first?
Forum: Solaris 01-29-2014
11,456
Posted By Scrutinizer
First things first: Like Don Cragun mentioned,...
First things first:
Like Don Cragun mentioned, don't you have gsed on your system?
Try which gsed to see if it is there or check if there is /opt/csw/bin/gsed. If so, you could make a symlink from...
Forum: Solaris 01-28-2014
11,456
Posted By MadeInGermany
/usr/bin/gunzip belongs to Solaris since a decade...
/usr/bin/gunzip belongs to Solaris since a decade (package SUNWgzip).
Forum: Solaris 01-28-2014
11,456
Posted By Don Cragun
If you have a program named gunzip installed, do...
If you have a program named gunzip installed, do you also have gsed installed?

When you download software and it includes a file named README, I think it should be obvious that you should start by...
2,216
Posted By RudiC
uniq will work on sorted (or at least entire...
uniq will work on sorted (or at least entire "paragraphs" with duplicates) files only.
2,216
Posted By RudiC
Do you mean quit after the first match? Try grep...
Do you mean quit after the first match? Try grep -m1
Do you mean one line per repeating patterns? Pipe result through sort -u
Don't you want to lose the original sort order? Pipe through awk...
2,216
Posted By pravin27
sudo...
sudo /usr/openv/netbackup/bin/admincmd/bpmedialist -mcontents -m ADC020 -L | awk -F"=" '/^backup_id/{$1="";backup_id[++i]=$0}
/^creation/{$1="";creation[i]=$0}
/^expiration/{$1="";expiration[i]=$0}...
2,216
Posted By pravin27
Could you please provide desire output ?
Could you please provide desire output ?
2,216
Posted By pravin27
sudo...
sudo /usr/openv/netbackup/bin/admincmd/bpmedialist -mcontents -m ADC020 -L | grep "^backup_id\|^creation\|^expiration\|^policy\|^sched_label"
OR
sudo /usr/openv/netbackup/bin/admincmd/bpmedialist...
2,216
Posted By phpshell
cat file | grep -E...
cat file | grep -E "backup_id|creation|expiration|policy|sched_label" | awk '{print "creation",$2,$3,$4,$5}' | grep -v 38_
2,216
Posted By pravin27
grep -E...
grep -E "^backup_id|^creation|^expiration|^policy|^sched_label" filename
Showing results 1 to 25 of 103

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