TWiki> ISG Web>TAUnix (revision 7)EditAttach

Avoiding certain hosts for any sort of work

Do not use student.cs for any sort of development or testing. Invoke hostselect +listAll undergrad to get a list of all available hosts for you to work and play with. The subset of those servers listed by hostselect attr=cpu +listall are what you should use exclusively for testing or other CPU-intensive work.

CSCF maintains a web page describing the hosts available in the student computing environment at http://www.cs.uwaterloo.ca/cscf/student/hosts. For example, cpu-solaris.student.cs will select a Solaris server for CPU-intensive work while fe-linux.student.cs will select a Linux server for general interactive use.

pkill

pkill kills all processes with a given name. For instance pkill java kills all java processes

pgrep

pgrep lists all the pids of processes matching a given name. For insance pgrep java lists all the pids of java processes

getBoxNumber

Returns the box number for a given student. For instance, /u/isg/pub/bin/getBoxNumber djshaw will return 30, djshaw's box number.

UNIX 101

Unfamiliar with the UNIX command-line interface? Have a look at (among other things) the Computer Science Club's excellent UNIX 101 Tutorial. (KyleSpaans taught this a couple of times)

-- DerekShaw - 27 Apr 2009

pgrep _ | xargs kill

There was once an issue where a parent process created the child process repeatedly without killing anything. The cause was unknown and this command killed everything connected to it at once.

At and deadline

Sometimes this does not work; make sure you manually close and check it for each deadline -n.

-- KyungMinKim - 30 Apr 2009

Edit | Attach | Watch | Print version | History: r11 | r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r7 - 2009-05-21 - DawnKeenan
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback