Re: [PATCH 0/6][lxc][v3] Link LXC with USERCR

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

 



  
> Here's a very simple program :
>
> 	# pi1.sh
> 	#
> 	# IBM Confidential
> 	#
> 	# OCO Source Materials
> 	#
> 	# P91223
> 	#
> 	# (C) Copyright IBM Corp. 2003, 2008
> 	#
> 	# The source code for this program is not published or otherwise
> 	# divested of its trade secrets, irrespective of what has been
> 	# deposited with the U.S. Copyright Office.

that's from the example section of bc(1) manpage. nothing confidential
there :)

> 	#!/bin/sh
>
> 	me=`basename "$0" 2>/dev/null`
> 	ndigit=${1:-1000}
>
> 	echo $me - $ndigit digits
> 	echo "scale=$ndigit;a(1)*4" | bc -l
>
> can you run in a terminal :
>
> 	$ lxc-execute -n pi1 -- ./pi1.sh 3000&
> 	$ lxc-checkpoint -n pi1 -d ./ckpt -k
> 	$ lxc-restart -n pi1 -d ./ckpt

please try that suka, it's much more interesting than sleep which can
silently segfault after restart.

thanks,

C.
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux