ve been asked to create a perl script in bash that will open an xterm or terminal, cd to a specific directory, the load modules. I have very little perl experience and have been searching the web and books with no luck. I can get it to open the shell with the env/paths but cant execute any commands like a simple "cd". Heres what I got:
#!/usr/bin/perl system ('gnome-terminal', 'sh', -c 'cd /home/$USER/projects; module lo +ad project/test' );
Thanks!!!!
Code and p tags added by GrandFather
In reply to perl scripting help by ejm20
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |