![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ignite issue on HPUX server | Prabhu H | HP-UX | 3 | 12-10-2008 10:15 PM |
| how to execute script from my desktop windows xp to my HPUX server? | kenshinhimura | HP-UX | 2 | 03-05-2008 05:47 PM |
| Can't start the cpp server in hpux | onlyforforum | HP-UX | 0 | 05-26-2007 10:25 AM |
| Configuration of email on HPUX server | sharmavr | UNIX for Dummies Questions & Answers | 1 | 07-19-2006 10:22 AM |
| Finding server Model on HPUX | lnineill | HP-UX | 4 | 01-06-2005 02:37 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas?
|
|
||||
|
The mpctl() system call (in C) lets you specify what cpu a process runs on.
Is that what you meant? or something like this? Code:
i=0
while true
do
while [[ $i -lt 100000000 ]]
do
i=$(( $i + 1))
done
i=0
done
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|