VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 Replies Last post: Nov 3, 2009 5:21 AM by fixitchris  

runprograminguest Syntax posted: Nov 2, 2009 1:43 AM

Click to view mic21's profile Novice 10 posts since
Oct 26, 2009
Hi,

how can I decompress a tar file on guest Linux suse guest with runprogramfile?


tar take the argument "xvf" before name file.tar. How can i pass the "xvf" argument in the command runprograminguest?


I wrote:


vmrun -T esx -h "https://xxx.xxx.com/sdk" -u "mxxxxxi" -p "mxxx" -gu "xxx" -gp "xxxxx" runProgramInGuest "xxxxxx ncxxxx/xxxx.vmx" "bin/tar" "xvf" "/bin/file.tar" -display


but, nothing happened! Please help me!

Re: runprograminguest Syntax

1. Nov 3, 2009 5:21 AM in response to: mic21
Click to view fixitchris's profile Expert 547 posts since
Dec 8, 2006
Take a look here:

http://communities.vmware.com/blogs/vmroyale/2009/04/23/using-vmrun-runprograminguest-with-windows-installer-msi-packages

Try to create a script:
./bin/tar xvf $1


Then call it:
vmrun -T esx -h "https://xxx.xxx.com/sdk" -u "mxxxxxi" -p "mxxx" -gu "xxx" -gp "xxxxx" runProgramInGuest "xxxxxx ncxxxx/xxxx.vmx" "myscript" "/bin/file.tar" -display 

Developer Social Media

Communities