Moving __appendfile in Solaris

(imported topic written by jocelyn91)

Hi everyone,

For whatever reason, I can not get to make the following work on OpenSolaris (Solaris 11)

move __appendfile myscript

as seen in multiple examples and provided fixlets.

This might be because of OpenSolaris vs Solaris 10…

So I am stuck running the __appendfile script I created directly, which works but is not very handy.

Am I missing something?

Here is my action script:

prefetch foobar.sh sha1:da1cd24d9e86e0426c077dd1341ba40bdb9f498d size:76353 http://dummy/

appendfile #!/bin/sh

appendfile rm -rf /tmp/foobar

appendfile mkdir /tmp/foobar

appendfile mv __Download/foobar.sh /tmp/foobar

appendfile cd /tmp/foobar

appendfile chmod 500 foobar.sh

appendfile ./foobar.sh

wait chmod 500 __appendfile

wait ./__appendfile

This works.

If I try the same thing with

move __appendfile run_foobar.sh

wait chmod 500 run_foobar.sh

wait ./run_foobar.sh

then __appendfile disappears but there is no run_foobar.sh created…