Search Results

Search: Posts Made By: darthur
2,448
Posted By darthur
Creating user ids on multiple systems simultaneously
I am trying to think of a way to create user ids on multiple Linux systems in one fell swoop without logging onto each system indivually. Is there a way to do this with ssh commands? I don't want to...
2,494
Posted By darthur
sed modify problem in script
I am having problems with the following "sed" command only when it is issued within a bash script.

#!/bin/bash
cat config.xml | sed -e 's/yes/no/g' > newconfig.xml


When I enter this command...
2,271
Posted By darthur
Now, How can I run this within an existing script?
Now, How can I run this within an existing script?
2,271
Posted By darthur
SWAT is good for small changes
We use SWAT for small changes, but when we have several users or groups that we need to be able to delete multiple entries all at once whether it be 5 or 500. I figured that if I could find a way to...
2,271
Posted By darthur
Looking for a good way to search & destroy lines
What is a good way to find an entry in a .conf file and then remove all lines associated with that entry?

I have a Samba server running on Linux that I would like to easily add/remove share...
2,007
Posted By darthur
That is what I needed ... Thanks
I didn't even think about accounting for a filesystem that reaches 100%. I used your suggestions and it is working great. Excellent suggestions Jimbo.

Ahh.... now I understand your example with...
2,007
Posted By darthur
I couldn't get this to work.
Maybe I don't understand the concept of your example. Can you explain the [1] [2] [3] in your example and how it correalates to the 80 & 90?


Would it go something like this?

if ($rootuse[1]...
2,007
Posted By darthur
Need help with if [ ] in my script?
In the following sccript I want to be able to only send different notifications based in whether the filesyste is over 80% or 90%. I need help with if [ ]. How would I make it so that if a filesystem...
24,421
Posted By darthur
found several ways to get the desired output.
Neo,

Ahhhh... yes isn't *nix great

df -h / | tail -1 | awk '{print $5}' | cut -c1-2

This works too.

df -h / | awk '{print $5}' | cut -c1-2 | grep '[0-9]'
24,421
Posted By darthur
How can I cut output of command??
I am on a Linux system using bash shell.
I only want to see the number in the Use% field as the output.

#df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/dasda1 ...
2,922
Posted By darthur
Got it working ... Thanks.
The file has permissions set to 770.

I changed to #!/bin/bash and that fixed it.

Thanks LivinFree, doeboy, & inpavan.
2,922
Posted By darthur
Why won't my script run?
On the following script that I get an error when I try to execute as root:

#./mv_log.sh
bash: /root/util/mv_log.sh: Permission denied


#!/usr/bin
datetag=`date --date='1 day ago' +"%b%d%Y"`...
4,077
Posted By darthur
All of the above....
I would have to say all of the above. I have never used SNMP before, do you know of any good SNMP utilities?
2,641
Posted By darthur
2,641
Posted By darthur
How do I Key off % utilization for notification?
That command give me.

df -h | grep "%" | awk '{printf("%s\n", $5)}'
Use%
50%
51%
11%
55%

Now How would I key off the percentages to notify me when it gets above 80%?
2,641
Posted By darthur
Filesystem ??
Here is what the output of the df command

$df -h
Filesystem Size Used Avail Use% Mounted on
/dev/dasda1 2.2G 1.0G 1.1G 50% /
/dev/dasdb1 2.2G 1.1G 1.0G ...
4,077
Posted By darthur
This would primarily be a Linux system.
Although I have some other Unix flavors that I would be looking at like, Solaris, HP-UX, & AIX.
4,077
Posted By darthur
Looking for a general purpose System Monitor
Does anyone have any scripts or suggestions on a general purpose Unix/Linux monitoring tool?
2,764
Posted By darthur
2,764
Posted By darthur
Is there a way to kill 100's of PID's?
I need help with a command to kill all pid's associated with "java" processes.

Will this command work or is there an easier or better way?

#ps -u root | grep java | awk '{print $1}' | kill -9
3,753
Posted By darthur
Are there any other tools that anyone would...
Are there any other tools that anyone would reccomend for ease of management of full system backups?
3,753
Posted By darthur
Need to write a home-grown backup script for Linux
I am researching ways in which to backup files or whole file systems for backup to another system.

We are using Suse Linux 7.0 with no tape backup devices or secondary disks.

What utilities...
2,238
Posted By darthur
New Suse Linux Admin ?
I have just been handed two new Suse 7.2 Linux systems to Administer.

We are wanting to setup monitoring of applications, file system space, etc. Are there standard log directories that an...
3,836
Posted By darthur
Suse Linux mount problems ?
We are experiencing several startup problems at boot time. In our
/etc/rc.d/boot script we have "swapon -a -v &> /dev/null/' (without the
quotes). We have also added echo statements to make it...
9,727
Posted By darthur
Thanks for the feedback!
tee & the tips on using sed should do the trick ... Thanks!
Showing results 1 to 25 of 62

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