The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: How to....
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-27-2008
wmantly wmantly is offline
Registered User
  
 

Join Date: Apr 2008
Location: NYC
Posts: 2
Question How to....

Hello!, I have been using debian based GNU/linux for a few years now and have recently started using more complex shell scripts, I have a few questions that have been causing me issue during the last few days:

1: How to tell the file name of the current shell script?

2: How do I run A program/script from another directory but make it run from the directory that it lives in, EX: ~/script1.sh starts ~/randomdir/script2.sh will tell me that's it cant find dependent.txt witch is in ~/randomdir/ ?

3: I have A LAMP server running on my desktop, I would like to start qemu from a web front end, how do I start a program from a PHP/pyton/perl(I use PHP the most) that will run on my desktop?

Thank you for your help in advance.