|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH OSSTEST v2 11/20] Osstest/PDU: Add eth008.pm method to control the ARM rack PDU
Ian Campbell writes ("[PATCH OSSTEST v2 11/20] Osstest/PDU: Add eth008.pm
method to control the ARM rack PDU"):
> This controls the eth008 relay board:
> http://www.robot-electronics.co.uk/htm/eth008tech.htm
>
> Due to the use of the CGI interface this requires firmware version 4+.
...
> + # Create a netrc file to avoid putting l/p on command line
> + my ($passfh, $passfilename) = tempfile( UNLINK => 1 );
> + print $passfh "machine $mo->{PDU} login $mo->{User} password
> $mo->{Pass}\n";
Where does tempfile(UNLINK=>1) create its files and what deletes it if
the script crashes ? It might be better to use something in tmp/
(presumably with the host name in the filename). See for example
ts-host-install which uses tmp/t.<host>.initrd.
Or of course you could use LWP::UserAgent.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |