Luxana
asked on
startx as a user
Hello,
I'm running really simple installation of debian. There are no KDM or GDM. xserver is running properly. What I would like to do is to start X as a user foobar and then once X running automatically start perl script myapplication.pl as a user root. What I have tried is:
chmod +s myapplication.pl - this would not work
any hints?
thank you
I'm running really simple installation of debian. There are no KDM or GDM. xserver is running properly. What I would like to do is to start X as a user foobar and then once X running automatically start perl script myapplication.pl as a user root. What I have tried is:
chmod +s myapplication.pl - this would not work
any hints?
thank you
ASKER
where would you put perl script?
replace "command" with your perl script name
just be sure your perl script has the shebang line referencing perl executable
#!/usr/bin/perl (if perl is in there)
just be sure your perl script has the shebang line referencing perl executable
#!/usr/bin/perl (if perl is in there)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi WizRd-Linux,
but if I put it in /usr/bin it does not get executed after user starts startx
but if I put it in /usr/bin it does not get executed after user starts startx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
do shell script "echo password | sudo -S command"
or
do shell script "sudo -S command <password.txt"