I added the source-able piece of shell snippet from the "shellenv" 
branch to rumprun.  Sourcing it sets the env for rumpremote.  It also 
adds a "listcmds" command for, you guessed it, listing the available 
rumpremote commands.  See usage example at the end of this mail.

The only potential usage issue I see is that if an expected rumpremote 
command is missing, a host command will be run instead.  I considered 
overriding the existing $PATH completely when rumpremote.sh is sourced, 
but that would also take away things like piping command output to grep, 
less, etc.  That said, I'm not sure it's anything to greatly worry about.

I think the "shellenv" can be considered dead now.


pooka@watou:~/src/rumprun$ . rumpremote.sh
rumpremote (NULL)$ ls
error: RUMP_SERVER not set
rumpclient init failed
rumpremote (NULL)$ export RUMP_SERVER=unix:///tmp/srv
rumpremote (unix:///tmp/srv)$ ls
dev
rumpremote (unix:///tmp/srv)$ ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33648
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
        inet 127.0.0.1 netmask 0xff000000
rumpremote (unix:///tmp/srv)$ sysctl kern.hostname
kern.hostname = rump-07499.watou
rumpremote (unix:///tmp/srv)$ listcmds | xargs echo
arp cat cgdconfig cp dd df disklabel dump dumpfs fsck fsck_ext2fs 
fsck_ffs fsck_lfs fsck_msdos fsck_v7fs halt ifconfig ktrace ln ls makefs 
mkdir mknod modstat mount mount_ffs mv ndp newfs newfs_ext2fs newfs_lfs 
newfs_msdos newfs_sysvbfs newfs_udf newfs_v7fs npfctl pax pcictl ping 
ping6 raidctl reboot rm rmdir rndctl route sysctl umount vnconfig
rumpremote (unix:///tmp/srv)$ unload_rumpremote
pooka@watou:~/src/rumprun$ sysctl kern.hostname
sysctl: cannot stat /proc/sys/kern/hostname: No such file or directory
pooka@watou:~/src/rumprun$


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
rumpkernel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rumpkernel-users

Reply via email to