mirror of
https://github.com/Qubes-Community/Contents.git
synced 2024-10-01 01:05:51 -04:00
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
This commit is contained in:
parent
e7043f715c
commit
d894ea44b0
15
code/productivity/qvm-copy-to-vm2,sh
Normal file
15
code/productivity/qvm-copy-to-vm2,sh
Normal file
@ -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 <Source in dom0> <AppVM> <Destination in 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
|
Loading…
Reference in New Issue
Block a user