On Wed, Jan 16, 2019 at 04:22:32AM -0500, Dave Albiston wrote:
> Thanks for your patience, uman
> 
> It is the exec line that is the problem. In the work domain
> I can run the script using:
> 
> sh /home/Scripts/myscript.sh
> 
> I guess that the menu exec statement is being run in dom0.
> So how can the statement be changed to point to a file in
> the work domain? Or, alternatively, how can the command be
> forced to execute in the work domain?
> 
> It's a learning curve!

We're all learning.

Make the script executable in the work qube.
Then in dom0 , try 'qvm-run work /home/Scripts/myscript.sh' at console.
Assuming that works, then you have the exec statement to use in the menu
item.
If it doesnt work, then you can use 'qvm-run -p' to get stdin/out in the
console, which may help with troubleshooting. Or start logging in the
script to see where it breaks.
You can also use '-u <user>' to run as specified user.

Once you can call the command from dom0, use that as the exec line.

-- 
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/20190116120212.h2pbeq542juihdsh%40thirdeyesecurity.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to