Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. idiotboy

    Getting multiple background process return codes in parent KSH

    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...
  2. idiotboy

    Checking within a string

    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
  3. idiotboy

    Checking within a string

    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...
  4. idiotboy

    getting memory statistics with sar

    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...
  5. idiotboy

    linux as firewall server

    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...
  6. idiotboy

    Installing Red Hat Linux

    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...
  7. idiotboy

    Network Configuration

    Thanks,that did it. I didn't think that I had to perform a reboot after. Cheers Really appreciate the help everyone take care, Chris
  8. idiotboy

    Network Configuration

    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...
  9. idiotboy

    Network Configuration

    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...
  10. idiotboy

    How much RAM do I have

    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...
  11. idiotboy

    Case statement in Korn Shell

    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...
  12. idiotboy

    .bashprofile can anyone verify if this is right

    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...
  13. idiotboy

    .bashprofile can anyone verify if this is right

    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...
  14. idiotboy

    Command Line problems with Redhat 6.2

    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...
  15. idiotboy

    Command Line problems with Redhat 6.2

    Cheers Timsr, will give this a try tonight. Will let you and Mighty posted. Thanks idiotboy
  16. idiotboy

    Command Line problems with Redhat 6.2

    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
  17. idiotboy

    Command Line problems with Redhat 6.2

    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...
  18. idiotboy

    Command Line problems with Redhat 6.2

    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...
  19. idiotboy

    Command Line problems with Redhat 6.2

    will do. Will have to wait til tonight. Will try later. Thanks for the help.
  20. idiotboy

    Command Line problems with Redhat 6.2

    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...

Part and Inventory Search

Back
Top