John Thornton wrote:
> #!/bin/bash
> cd emc2-2.2.x/src
> ./configure --enable-run-in-place --enable-build-documentation
> echo Starting Make
> make > 1make.txt
> sudo make setuid
> cd ..
> cd ..
>
> My question is how can I pass my password to the "sudo make setuid" line?
>
> The make > 1make.txt sends the normal output to the file so all I see it
> warnings
> and errors which makes it easier for me to see them after the run...
I do something like this:
sudo clear; make && sudo make setuid
The initial invocation of sudo requires the password, then caches it for
a while, almost always long enough that the "sudo make setuid" doesnt
need to ask for it.
--
Sebastian Kuzminsky
Distances obtained as the speed of light multiplied by a cosmological
time interval have no direct physical significance.
<http://en.wikipedia.org/wiki/Observable_universe>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers