VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
3 Replies Last post: Nov 2, 2009 11:07 AM by mattrich  

Problem with runprograminguest tar posted: Oct 30, 2009 8:35 AM

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

Hello everyone,

I can't decompress a tar file in SUSE Linux guest. The command is as follows:

vmrun -T esx -h "https://xxx/sdk" -u "hostUser" -p "hostPsw" -gu "guestUser" -gp "guestPsw" runProgramInGuest "file.vmx" bin/tar "xvf name_file.tar" -display

After running I don't get an error message and the tar file is not decompressed. How do I do? What is the correct syntax?

Re: Problem with runprograminguest tar

1. Oct 30, 2009 11:40 AM in response to: mic21
Click to view mattrich's profile Expert 510 posts since
Nov 29, 2006
I'd make sure you use absolute paths for both the path to `tar` and the tar file.

Re: Problem with runprograminguest tar

3. Nov 2, 2009 11:07 AM in response to: mic21
Click to view mattrich's profile Expert 510 posts since
Nov 29, 2006
I doubt you need the "-display" argument, since tar is a command line program that does not interact with X11. In fact, tar seems to complain when you try to pass that option, since it doesn't know what it means.

It shouldn't really matter where the tar file is, you will need to specify a full path to it. The working directory for programs executed through vmrun is not defined, so you should always specify full paths to arguments.

Developer Social Media

Communities