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

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

Thanks, Dimitri. I followed your proposed Option 1. It worked as I expected.
On May 17, 2013, at 5:22 PM, Dimitri Maziuk <dmaziuk@xxxxxxxxxxxxx> wrote:

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.

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

HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at:

Zhe Zhang
Department of Computer Science and Engineering
University of Nebraska-Lincoln
Lincoln, NE, 68588