Subject: Re: [ast-users] Binaries not working on Suse Linux but works on
Solaris?
--------
> Hello, I have problems with Suse and compiled shell scripts. If I try
> to execute a shell script compiled with shcomp on Solaris Express it
> works like a charm but on Suse the system refuses to execute the
> binary:
> lorddan@test:~> cat x.sh
> print "hello world"
> print --version
> lorddan@test:~> shcomp x.sh x
> lorddan@test:~>
> -bash: ./x: cannot execute binary file
>
> Does anyone have a tip why this fails?
>
Two problems:
1. x needs to be executable
2. You need to run with ksh as the shell.
You can both of these by doing:
print '#! <pathname_for_ksh>' > x
shcomp x.sh x >> x
chmod +x x
David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users