> Thanks for your tip, but I still have some difficulties. When I proceed as > you described, the code will be compiled, but the output file will be > written to root directory. So, I have to change the directory for > compilation. I thought that something like > > $ROOTCMD cd /home/cluster/clustersoft > $ROOTCMD gcc /home/cluster/clustersoft/test.c > > resp. > > $ROOTCMD cd /home/cluster/clustersoft > $ROOTCMD gcc test.c >
Ähm - no. chroot <commands> will perform the command in a new shell, thus any cd command is not visible in later chroot calls. What should work instead is the following $ROOTCMD { cd /home/cluster/clustersoft ; gcc test.c } HTH, Michael
pgpyxCzzDflmC.pgp
Description: PGP signature