Bfarchive and extract

Any idea why “extract” can’t find the path. file is archive using “bfarchive”.
I have to create the archive which can extracted in unix and wintel. “tar” is present across unix but not in wintel. “unzip” is present in unix but not sure if its present across wintel or not. I don’t have control over wintel server. so bfarchive is best option i have.

ActionLogMessage: (action:1733938) Download url: 'http://xyz:52311/Uploads/95a06829ac1a5346071c5a92c5aad70398d45886/bf_arch
ActionLogMessage: (action:1733938) Action signature verified for Execution
ActionLogMessage: (action:1733938) starting action
At 10:38:18 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded delete No ‘/tmp/bf_arch’ exists to delete, no failure reported (action:1733938)
Command started - wait mkdir /tmp/MQ (action:1733938)
At 10:38:19 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=1) wait mkdir /tmp/MQ (action:1733938)
At 10:38:20 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command started - wait extract bf_arch “/tmp/MQ” (action:1733938)
At 10:38:21 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command failed (child exec() failed (errno is 2: No such file or directory) wait extract bf_arch “/tmp/MQ” (action:1733938)
At 10:38:21 -0400 -

ActionLogMessage: (action:1733928) Download url: 'http://xyz:52311/Uploads/95a06829ac1a5346071c5a92c5aad70398d45886/bf_arch
ActionLogMessage: (action:1733928) Action signature verified for Execution
ActionLogMessage: (action:1733928) starting action
At 10:06:00 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded delete /tmp/bf_arch (action:1733928)
Command started - wait mkdir /tmp/MQ (action:1733928)
At 10:06:01 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=1) wait mkdir /tmp/MQ (action:1733928)
At 10:06:03 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command started - wait extract bf_arch /tmp/MQ (action:1733928)
At 10:06:04 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command failed (child exec() failed (errno is 2: No such file or directory) wait extract bf_arch /tmp/MQ (action:1733928)
At 10:06:04 -0400 -

ActionLogMessage: (action:1733925) Download url: 'http://xyz:52311/Uploads/95a06829ac1a5346071c5a92c5aad70398d45886/bf_arch
At 09:59:11 -0400 -
ActionLogMessage: (action:1733925) Action signature verified for Execution
ActionLogMessage: (action:1733925) starting action
At 09:59:13 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded delete No ‘/tmp/bf_arch’ exists to delete, no failure reported (action:1733925)
Command started - wait mkdir /tmp/MQ (action:1733925)
At 09:59:14 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=0) wait mkdir /tmp/MQ (action:1733925)
At 09:59:15 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded move __Download/bf_arch /tmp/bf_arch (action:1733925)
Command started - wait extract /tmp/bf_arch /tmp/MQ (action:1733925)
At 09:59:16 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command failed (child exec() failed (errno is 2: No such file or directory) wait extract /tmp/bf_arch /tmp/MQ (action:1733925)
At 09:59:16 -0400 -
ActionLogMessage: (action:1733925) ending action

It looks like the output folder may not have been created (the exit code of ‘1’ usually indicates error)

Command succeeded (Exit Code=1) wait mkdir /tmp/MQ (action:1733938)

I’d try the ActionScript command directly instead of wait command…

Folder create /tmp/MQ

folder is there.

image

same thing even with “folder create”

Command succeeded delete No ‘/tmp/bf_arch’ exists to delete, no failure reported (action:1733953)
Command succeeded folder create /tmp/MQ (action:1733953)
Command started - wait extract bf_arch “/tmp/MQ” (action:1733953)
At 11:12:02 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command failed (child exec() failed (errno is 2: No such file or directory) wait extract bf_arch “/tmp/MQ” (action:1733953)
At 11:12:02 -0400 -

Is your intention to run the BigFix extract command? If so, note that it should not be executed with a wait command. Please see https://developer.bigfix.com/action-script/reference/file/extract.html for reference.

1 Like

ahh…let me try that.

it worked. Thanks Aram.

Command succeeded folder create /tmp/MQ (action:1733962)
Command succeeded extract bf_arch “/tmp/MQ” (action:1733962)
Command started - wait sh /tmp/MQ/mft_client.sh R (action:1733962)
At 11:31:26 -0400 - actionsite (http://xyz:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=0) wait sh /tmp/MQ/mft_client.sh R (action:1733962)

3 Likes