[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Dynamically determine the amount of extensible machine resource



On 05/17/2013 04:46 PM, Zhe Zhang wrote:
> ...What I prefer is that the cron job checks the bandwidth when startd launches. 

Option 1: write your check in C, compile it, make it suid root.

Option 2: in linux device files are usually owned by specific groups. If
that's the case, add the user who runs the script to the group that owns
the device.

If you're looking for network link speed:
Option 3:
$ ethtool eth0 | grep Speed
Cannot get wake-on-lan settings: Operation not permitted
        Speed: 1000Mb/s

works here as regular user.

HTH,
-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature