Running tar -xvzf on SLES 11

(imported topic written by Bill.Ehardt)

We are looking at using bigfix on our sles servers, and I’ll be the first to admit I’m good on the Windows side, not linux.

I am using a createfile the chmod 755 that file to run the commands in the script.

The problem comes in when I am un-TARing a file. The command works fine when we run it manually but not when bigfix runs it. The command is below:

tar -xvzf /patrol.installation.tar.Z

The commands before and after seem to work fine. I also tried to just run the untar command by itself via:

run tar -xvzf /patrol.installation.tar.Z

but it didn’t work. Am I doing something wrong? I’m assuming it is something simple

(imported comment written by NoahSalzman)

You probably want something like

run /bin/sh -c

http://forum.bigfix.com/viewtopic.php?id=5447

http://forum.bigfix.com/viewtopic.php?id=6316

http://forum.bigfix.com/viewtopic.php?id=2350

Or you can just run a shell script instead of an ActionScript. Note that there is a pop-up menu in the Take Action Dialog that lets you specify whether you are running ActionScript, AppleScript, or a shell script.