From d894ea44b0d897635b39ea88347bdb7c58432594 Mon Sep 17 00:00:00 2001 From: "[799]" Date: Thu, 3 May 2018 18:41:31 +0200 Subject: [PATCH] Create qvm-copy-to-vm2,sh script which can copy a file from dom0 to a specific location in an AppVM. If no location is used, the default ~/QubesIncoming will be used --- code/productivity/qvm-copy-to-vm2,sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 code/productivity/qvm-copy-to-vm2,sh diff --git a/code/productivity/qvm-copy-to-vm2,sh b/code/productivity/qvm-copy-to-vm2,sh new file mode 100644 index 0000000..ab7594d --- /dev/null +++ b/code/productivity/qvm-copy-to-vm2,sh @@ -0,0 +1,15 @@ +#!/bin/bash +# qvm-copy-to-vm2 +# Copy a file from dom0 to a specific location in an AppVM +# qvm-copy-to-dom0 + +# command line parameters +Source=$1 # must be present +AppVM=$2 # must be present +Destination=$3 # must be present + +# if no Destination given on commandline use /home/user/QubesIncoming +if [ -z "$3" ];then Destination=/home/user/QubesIncoming; fi + +# copy file from dom0 to AppVM +qvm-run --pass-io $AppVM "cat $Source" > $Destination