Re: [qubes-users] Run "cd /path/to/file" Command with qvm-run

2018-05-14 Thread cr33dc0d3r
Am Montag, 14. Mai 2018 12:38:34 UTC+2 schrieb Holger Levsen:
> On Mon, May 14, 2018 at 03:34:00AM -0700, cr33dc0d3r wrote:
> > Does anyone know how to use cd command with qvm-run?
> 
> qvm-run --pass-io personal "cd /home/user/Desktop/ ; ls"
> 
> 
> -- 
> cheers,
>   Holger

Works for me

Thanks, 
Jonny

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/92f61c8b-3901-447f-8882-95b9077c89d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Run "cd /path/to/file" Command with qvm-run

2018-05-14 Thread Holger Levsen
On Mon, May 14, 2018 at 03:34:00AM -0700, cr33dc0...@gmail.com wrote:
> Does anyone know how to use cd command with qvm-run?

qvm-run --pass-io personal "cd /home/user/Desktop/ ; ls"


-- 
cheers,
Holger

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20180514103829.ooxq6umifmztdhav%40layer-acht.org.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


[qubes-users] Run "cd /path/to/file" Command with qvm-run

2018-05-14 Thread cr33dc0d3r
Hey All, 

currently tried to change dir in AppVM with qvm-run from dom0.

What I have done:
qvm-run personal "cd /home/user/Desktop/"
qvm-run personal "ls"

However it always returns the /home/user/ instead of Desktop. 

When i try to execute a Script located on Desktop i tried:

qvm-run personal "cd /home/user/Desktop/"
qvm-run personal "./script.sh"

Then it says: sh: ./script :No such file or directory
(Of course not when the cd did not work before)

Same when i tried:
 
qvm-run personal "cd /home/user/Desktop/ ./script"#
or
qvm-run personal "cd /home/user/Desktop/ | ./script"

Does anyone know how to use cd command with qvm-run?

Thanks
Jonny

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/7670b28b-b4ee-41d3-af66-4b65e92cd22f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.