Using System calls without compilation

Hi...
I would like to create a program that can be easily ported between several Linuxes... Therefore I would like to avoid compilation and have the ability to run it as shell scripts runs...

My program need to call some system calls such as fork etc...
do you know a way to use them without compilation ?

thanks,

With a shell script using the "&" causes a fork without wait.

eg

#!/bin/sh

run_this_as_a_child()
{
     ps
}

echo parent is $$

run_this_as_a_child &

echo parent is $$, child was $!

wait

Perhaps Perl may be more what you want.