Search Results

Search: Posts Made By: hedkandi
12,579
Posted By Yoda
Please modify your if-else statement like below...
Please modify your if-else statement like below and re-try:-

if [ `ps -eaf | grep -v grep | grep -c $CHECK_SCRIPT` -ne 0 ]
then
logger -s "$CHECK_SCRIPT is running. Do nothing"
else
...
12,579
Posted By hergp
If you have pgrep installed, it might be what you...
If you have pgrep installed, it might be what you need:

$ pgrep -l rsyslogd
1515 rsyslogd
1,542
Posted By elixir_sinari
Drop the quotes around ^#. In bash, the second...
Drop the quotes around ^#. In bash, the second operand for =~ is a pattern. Since you've quoted the pattern, it is not being treated as a pattern but as a string. Hence, only the else statement is...
2,022
Posted By cero
Have a look at the OS-hardening tool Bastille...
Have a look at the OS-hardening tool Bastille (http://bastille-linux.sourceforge.net/).
2,022
Posted By Scrutinizer
On SUSE I would use a good ftpd, try AppArmor,...
On SUSE I would use a good ftpd, try AppArmor, leave that firewall on and only allow the required ports and maybe also use TCP_wrappers (it can't hurt).
14,644
Posted By Scrutinizer
That is a good realization.. Those parameters are...
That is a good realization.. Those parameters are replacement characters used by SAP and they have a specific meaning and they are replaced by actual values that are being passed to the script before...
14,644
Posted By Scrutinizer
It is not a csh script, but a sh script, so the...
It is not a csh script, but a sh script, so the shebang is wrong. My guess is, it has always been executed as sh /path/to/script, in which case the shebang is treated as comment and is disregarded.....
4,711
Posted By otheus
From 25+ years experience: The price you pay for...
From 25+ years experience: The price you pay for software seems to have absolutely no relation at all in relation to the end-user experience (usability + support).

When it comes to anti-virus...
38,215
Posted By Scrutinizer
/etc/rc.d/init.d/networker status appears to...
/etc/rc.d/init.d/networker status
appears to just list the processes. Probably the best thing to do in your script is to just issue a

/etc/rc.d/init.d/networker stop
/etc/rc.d/init.d/networker...
38,215
Posted By otheus
1. Depends on what the operating characteristics...
1. Depends on what the operating characteristics of the program. Drop a stop/start script in cron.daily/ and go from there.

2. Again, how do you characterize when it is hung? That is, what...
Forum: Red Hat 04-16-2012
8,948
Posted By mark54g
This might help you out also: vmstat -s...
This might help you out also:


vmstat -s -S M | egrep 'mem|swap'


Memory is faster than swap. If you have a lot of unused memory, then you are wasting it.
Forum: Red Hat 04-16-2012
8,948
Posted By Corona688
You are having the standard linux newbie memory...
You are having the standard linux newbie memory freakout. We sometimes see a few of these a month. Take a deep breath and relax -- you're not running out of memory.

Memory that's otherwise...
Forum: Red Hat 04-16-2012
8,948
Posted By fpmurphy
No, in general, it is not a better option. See...
No, in general, it is not a better option. See Help! Linux ate my RAM! (http://www.linuxatemyram.com/index.html)
Forum: Red Hat 03-20-2012
2,503
Posted By methyl
@hedkandi Just realised that your original...
@hedkandi

Just realised that your original cron from post #1 must have been running the script every 5 minutes and therefore appending to the output file every 5 minutes. So if you look at 11:00...
Forum: Red Hat 03-20-2012
2,503
Posted By ygemici
hi hedkandi, your script is seem OK. but as...
hi hedkandi,
your script is seem OK.
but as already mentioned by @methly, system date settings and cron may use different timezone information(TZ).
check if your system (redhat derivative )
#...
4,003
Posted By knight_eon
You can do like this for the Destination...
You can do like this for the Destination Directory:


#!/bin/bash

OLD_HIST_DIR="/var/log/user_history/old_logs"
HIST_DIR="/var/log/user_history"
...
Forum: Red Hat 01-05-2012
14,785
Posted By verdepollo
Well, seems you've already figured out how to...
Well, seems you've already figured out how to solve it, am I right?

If you just want to hear an opinion, both options are OK. Try them both and see which one fits better to your preference. That's...
Forum: Red Hat 12-22-2011
1,962
Posted By verdepollo
I'm not sure I understood you well, but you're...
I'm not sure I understood you well, but you're putting sudo inside a sudoers file. There isn't any restriction to do that but it looks weird when running a command:
sudo sudo su - someuser

Try...
Forum: Red Hat 12-20-2011
5,161
Posted By verdepollo
Before you can assign an ACL, you have to make...
Before you can assign an ACL, you have to make sure that the filesystem supports them:
tune2fs -l /dev/sdX/ | grep options

If you run mount you may also get the details. There should be an "acl"...
Forum: SuSE 12-02-2011
20,550
Posted By dude2cool
why don't you try this , comment out the...
why don't you try this , comment out the GHELPDESK line and replace it with:

test my-mnag0 = (root) /usr/sbin/viudo

or define your host_alias to be my-mnag0 instead of...
Forum: SuSE 12-01-2011
20,550
Posted By sagoiz
Hello, ok, this is what I did to reproduce your...
Hello, ok, this is what I did to reproduce your conf.

From your conf remove the line:
GHELPDESK LAN = SUDO

Then to add a runas alias:

Runas_Alias ROOT = root

Then add a user to...
Forum: Linux 11-18-2011
9,566
Posted By pludi
print really can't be found on most Linux...
print really can't be found on most Linux machines. An alternative would be rewriting that line to use printf or echo. Same with compress, the replacement would be gzip or bzip2.

And that you...
10,363
Posted By bakunin
First off, thanks for writing a follow-up. Most...
First off, thanks for writing a follow-up. Most people here do not and this way nobody knows if the suggested solution or the hint helped at all or not.



This might, depending on your...
10,363
Posted By zxmaus
Hi, why would you even possibly want a...
Hi,

why would you even possibly want a non-relocatable VG ? I don't think you can change it ...

mklv -y'<name_of_lv>' -t'jfs2' -x'<max_pp_in_lv>' rootvg <size_of_lv_in_pp>

where...
Showing results 1 to 24 of 24

 

Featured Tech Videos

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