[Users] problem run shell script by vzctl exec

hhding.gnu hhding.gnu at gmail.com
Thu Nov 1 23:42:32 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

what's the problem?

server3:~# vzctl exec 180 cat hi.sh
#!/bin/bash

echo $HOME
server3:~# vzctl exec 180 hi.sh
/
server3:~# vzctl exec 180 echo $HOME
/root

server3:~# aptitude show vzctl
Package: vzctl
State: installed
Automatically installed: yes
Version: 3.0.18-1
Priority: optional
Section: admin
Maintainer: Ola Lundqvist <opal at debian.org <mailto:opal at debian.org>>
Uncompressed Size: 872k
Depends: libc6 (>= 2.3.6-6), iproute, vzquota
Recommends: rsync
Suggests: kernel-patch-openvz
.....

server3:~# uname -a
Linux server3 2.6.18-028stab045 #11 Wed Oct 10 13:28:22 CST 2007 i686
GNU/Linux
server3:~#
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFHKpyoJo9Njjkvy34RAscYAKCATCPihKg3wXmOYRGCbKB/Ha++OwCeM2cL
sAf+xxn1ga2Mynj+rfeCsnQ=
=0ABA
-----END PGP SIGNATURE-----



More information about the Users mailing list