You can use flag files and schedule the jobs using at command. This is more transparent to operators and easier to check in terms of process flow.
e.g script1 - does what you want to do
e.g script2 - does something else
e.g script3 - does even more
script4 is your control script (which is the...
Homework? Not for at least 20 years.
Thanks to both of you. I was a bit surprised that there isn't a more elegant solution.
As I proposed, my method works, I just wondered if it could be done better.
Thanks for the help and the link to the post.
Cheers,
Chris
Hi,
I have a string e.g.
idiotboy|is|trying|to|count|how|many|pipes|are|in|this|string|
How can I count how many pipes there are in the string?
grep only returns the string itself
I can
While read pipe|;do tr -s "|" "|\n" $pipe|wc -l;done
but I thought there might be another way which is...
Sorry to go off the point slightly.
Have you tried NMON. Its an unsupported (but written by a nice man at IBM) utility which should produce all you need. It provides cpu,memory,disk,etc reports which it puts out to an excel spreadsheet. It has two parts, the app on the AIX box and the macro...
Might I suggest www.smoothwall.org
Its a super little firewall that is Linux based. I have installed mine on an old pc that I had lying around the house. I have it running on an old 486 (the minimal install is about 40mb hard drive 8mb ram or something similar).
I found that trying to...
Hi,
If I install Red Hat Linux (latest version) on a server (pc) which is dual processor, will I experience any problems and more importantly, if I have an application that utilises paralell processing will this correctly be assigned both processors at run time?
Sorry for the vagueness...
jimbopalmer,
thanks for the post.
When I meant that I couldn't ping my solaris box, I meant that I couldn't ping from itself
e.g. hostname
$ulta1
$ping ultra1
$no answer from ultra1
or from anywhere else on the network.
I can ping 127.0.0.1 (but I believe this to be the loopback and of no...
Hi,
I have an Ultra 1. It is running Solaris 8. The OS is installed correctly and is behaving normally. I wish to connect it to my hub so that I can telnet to it from elsewhere within my house only.
My /etc/hosts looks like this
127.0.0.1 localhost
192.168.0.30 ultra1 loghost
169.254.164.12...
Hi,
I just bought a ultrasparc1. I noticed at boot up that the spec said that I had 128 megs ram. I was sold the machine thinking it had 256 megs ram. Do I need to do anything so that I can use that ram. I haven't looked inside the machine to confirm that there is in fact 256 ram. I...
Hi,
I've got the syntax for the case statement in korn shell (running on Solaris) but I can't figure out how to pose a question and read the answer as the input to the case statement. Do I just
print "Quesion:y/n"
read ans
ans="y"
case $ans in
y) print "blah...
Hi,
having performed the changes advised by RNINJA and Golden Eternity (and yes the bashrc was a typo (doh!)) I still cannot type the shutdown command directly from the command line. My error message comes up with "bash:shutdown: command not found".
Am I being stupid? I shouldn't...
Many thanks for the help. Is this .bashprofile right?
I can execute commands in their respective directories e.g.
/sbin/shutdown -h 1 whilst pwd = /sbin but not execute it elsewhere using shutdown -h 1. I should be able to shouldn't I?
Or am I being stupid?
.bashprofile
if [-f...
Hello Mighty,Rninja and Timsr
Well taking your advice has proved to be beneficial. But, things haven't changed that much. Last night I tried to execute the command shutdown -a -t 60 by typing /sbin/shutdown -a -t 60 and nothing happend except a different system prompt telling me I had the...
Mighty,
as I said before, your help has certainly put me on the right track and I appreciate your help. I'll have a trawl round the internet to see if I can find more.
Once again thanks for your help.
I'll let you know how I get on.
Cheers
Idiotboy
Mighty,
I logged out and tried again. No changes. The man pages are good, but as I've never actually beed root on anything before, I've no idea whether the .bash_profile is right or not.
I'll try again later tonight (at work at the moment). I'd thought I'd just cut to the quick and get my...
Well folks,
it looks like the .bash_profile and .bash_rc (I think its called .bash_rc) have bits missing. I have copies so if I have made a mistake I can easliy rectify this. The path doesn't point to the /sbin so I amended that, but it still came back with no joy when executing commands on the...
Yes I was logged in as root (I didn't think it was possible to perform a shutdown with the standard default user settings?)
The puzzling thing is that the command line prompt kept referring to the command not existing in the shell. Is it possible that I've not selected the correct shell? That...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.