On Mon 2012-05-14 (18:25), Papp Tamas wrote:
Error message?
No error message. Just shows host's uptime.
Return value?
Do you have /dev/pts ?
--
Ullrich Horlacher Server- und Arbeitsplatzsysteme
Rechenzentrum E-Mail: horlac...@rus.uni-stuttgart.de
On 05/04/2012 09:04 AM, Ulli Horlacher wrote:
On Fri 2012-05-04 (00:05), Samuel Maftoul wrote:
Maybe, the uptime of container's init process will show you uptime of the
container (so is accessible from within the container).
init does not provide its start time
I have now written a special
On Mon 2012-05-14 (11:57), Papp Tamas wrote:
I have now written a special uptime command to be placed in the containers
PATH:
#!/usr/bin/perl -w
$uptime = `/usr/bin/uptime`;
@s = lstat '/dev/pts' or die $uptime;
$s = time - $s[10];
if ($s172800) {
$d = int($s/86400);
On Fri 2012-05-04 (00:05), Samuel Maftoul wrote:
Maybe, the uptime of container's init process will show you uptime of the
container (so is accessible from within the container).
init does not provide its start time
I have now written a special uptime command to be placed in the containers
Hi !
Uptime shows the kernel uptime, and since the container doesn't spawn it's
own kernel, the uptime command won't show the container uptime.
Maybe, the uptime of container's init process will show you uptime of the
container (so is accessible from within the container).
--
Samuel
On Thu, May