Dismiss Notice

Welcome To CK5!

Registering is free and easy! Hope to see you on the forums soon.

Score a FREE t-shirt and membership sticker when you sign up for a Premium Membership and choose the recurring plan.

Unix System Administrators!

Discussion in 'The Lounge' started by ftn96, Jan 25, 2002.

  1. ftn96

    ftn96 1/2 ton status

    Joined:
    Sep 26, 2000
    Posts:
    3,238
    Likes Received:
    0
    Location:
    Nashville Tn
    Any of you out there know your $hit when it comes to unix? I need some help on areas that I dont normally frequent.
    If you could E-mail me or at least PM. E-mail would be alot faster since this site is so slow right now.

    **WARN**ing, Something winching this way comes to a trail near you. [​IMG]
    <a target="_blank" href=http://www.mccords.s5.com/myk5/index.htm>NashvilleK5</a>
     
  2. mike reeh

    mike reeh 1/2 ton status

    Joined:
    Jul 23, 2001
    Posts:
    752
    Likes Received:
    0
    Location:
    San Diego, CA
    what do you need to know?

    mike reeh
    freebsd 4.4-stable
     
  3. ftn96

    ftn96 1/2 ton status

    Joined:
    Sep 26, 2000
    Posts:
    3,238
    Likes Received:
    0
    Location:
    Nashville Tn
    Our programs run on a unix box, SCO type adn we normally dont have to deal with the unix admin once we get up and running. The question pertains to priorities and PID's. Once we log into unix, I have a script in everyones .profile to run the activation file for the programming language. Once this happens, everything we do as far as build a report, search data files, etc etc, these actions do not create other new PID's. So how would I go about telling the unix system to prioritze these other program actions?
    I need to know more about how the "nice" command works, as well as weather or not you can tell the unix system to see every request from a serial tty dev to be as equal to or close to the roots priority so that these requests would get A! attention, before all other processes minus those that are crucial for the system to run.
    Sorry this was long winded adn probably scatter brained. I've been up a while working on a new program and installing my new Warn 9500...... [​IMG]

    **WARN**ing, Something winching this way comes! [​IMG]
    <a target="_blank" href=http://www.mccords.s5.com/myk5/index.htm>NashvilleK5</a>
     
  4. Waxer

    Waxer 1/2 ton status Author

    Joined:
    Feb 17, 2000
    Posts:
    1,857
    Likes Received:
    0
    Location:
    Long Beach, CA.
    So you're sure that this doesnt create any children processes? If not, then all you can do is change the priority of the program PID to a higher level. you have from -20 to 19 with -20 being the highest priority level. Hope this helps...
    If this process is already running then you will want to use `renice` instead of `nice`.

    Crawlin the rocks with my K5
    <a target="_blank" href=http://www.rockreadyk5.com>http://www.rockreadyk5.com</a>
     
  5. ftn96

    ftn96 1/2 ton status

    Joined:
    Sep 26, 2000
    Posts:
    3,238
    Likes Received:
    0
    Location:
    Nashville Tn
    The start of the problem is that when out acconting lady goes to run here General Ledger program (routine actually) if the system is under a good load, it will tell her that they file she is accessing is busy. But when you go to check its not being accessed at all. So it seems like If I could tell the system that her program is the same priority from the begin as the set system function priorities, it would stop everyhing else momentarily to get her's up to speed.
    So the re-nice wont help. I need it to start of with the high priority. According to the software language compiler notes, all the programs are defaulted to a 20 priority, which according to the SCO book I have, is an average everyday user level priority.
    So if you go in under root and run the same program there are no issues, so I tried to give her all the privilages of root and that doesn't work either. I love the power of unix but it is a mess to deal with.

    **WARN**ing, Something winching this way comes! [​IMG]
    <a target="_blank" href=http://www.mccords.s5.com/myk5/index.htm>NashvilleK5</a>
     
  6. solowookie

    solowookie 1/2 ton status

    Joined:
    Mar 31, 2001
    Posts:
    3,880
    Likes Received:
    0
    Location:
    Wyoming
    one big problem that I run into with sco unix is that it needs rebooted on a weekly basis. it builds a lot of cache files, that will be rebuilt on startup, that get corrupt over time.

    if this is problem that just started up then you first course of action with sco is to always reboot first, and then dig into it if you are still having a problem.

    <font color=blue> Jeff - may the force be with you</font color=blue>
    <a target="_blank" href=http://coloradok5.com/gallery/Jeffs-Stuff>link to k5's</a>
     
  7. mike reeh

    mike reeh 1/2 ton status

    Joined:
    Jul 23, 2001
    Posts:
    752
    Likes Received:
    0
    Location:
    San Diego, CA
    I think setting the suid root flag on the program should run it with root priorities.. man chmod for more info.. maybe the system needs a cpu upgrade :)

    as for rebooting, there is something wrong with your system if its doing what you say, solo. No unix box especially a commercial flavor should have to be regularly rebooted. Thats part of the beauty of unix is its redundancy and stability, without those two things its just not the same. Heck my windows 2k box will stay up longer than that..

    I actually took a SCO system administration class a few years ago. Have not used SCO since! what a waste

    mike
     

Share This Page