[Gambas-user] ./ & root problem

Benoit Minisini gambas at ...1...
Sat May 22 15:34:28 CEST 2004


On Saturday 22 May 2004 15:10, Pozzo wrote:
> Hi All,
> I'm writing a program to simplify the instalations of programs, it
> should automatize the ./configue, make , make install procedure and
> search for the program wich it dipends, but I'm just starting and I've
> already found a problem! after extracting the file I've launched the
> ./configure command:
>
>  EXEC [ext &/ nome &/ "./configure"]WAIT
>
> where ext and nome complete the path where I'extrated the files.
> The problem is that the output of ./configure is sent to the ./
> directory of my program and not to the ./ directory of the configure, it
> means that all the modifications made by configure and all the files
> created by it are stored in /home/evilangel/Gambas/gIP (where my program
> run) and not in /home/evilangel/.gIP/<programname>!

the process ran by EXEC get its current directory, which is the project 
directory when you are in the IDE.

You can use the SHELL command to workaround this:

SHELL "(cd TheRealPath; ./configure)

>
>
> Another thing how can I execute a program like root??

By being root !? More seriously, this needs calling the "su" command with EXEC 
or SHELL, but I don't know if sending it the root password with PRINT works. 
I never tried.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list