From e591998f4aee1940e2ebfd34036c8aab5e902df6 Mon Sep 17 00:00:00 2001 From: Abel Luck Date: Fri, 19 Oct 2012 22:14:19 +0000 Subject: [PATCH] DevelopmentWorkflow changed add copy script --- DevelopmentWorkflow.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/DevelopmentWorkflow.md b/DevelopmentWorkflow.md index 200b43c1..cc94f197 100644 --- a/DevelopmentWorkflow.md +++ b/DevelopmentWorkflow.md @@ -76,3 +76,18 @@ mkdir -p $BAK cp -a /usr/bin/qvm-* /usr/bin/qubes-* $BAK/ sudo cp qvm-tools/qvm-* qvm-tools/qubes-* /usr/bin/ ``` + +### Copy from dom0 to an appvm + +``` {.wiki} +#/bin/sh +# +# usage ./cp-domain +# +domain=$1 +file=$2 +fname=`basename $file` + +qvm-run $domain 'mkdir /home/user/incoming/dom0 -p' +cat $file| qvm-run --pass-io $domain "cat > /home/user/incoming/dom0/$fname" +```