25 Jun 2012 08:56
Re: Problem with SDL when coming back from suspend mode in Debian
Mohsen Jamali <mohsen.aria <at> gmail.com>
2012-06-25 06:56:00 GMT
2012-06-25 06:56:00 GMT
su -u p -c "/home/p/Desktop/myscript"
su: invalid option -- 'u'
Usage: su [options] [LOGIN]
Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login make the shell a login shell
-m, -p,
--preserve-environment do not reset environment variables, and
keep the same shell
-s, --shell SHELL use SHELL instead of the default in passwd
It seems that -u doesn't work. is there any other option that could help?
i have also tried su -c "/home/p/Desktop/myscript" but have the same problem again
and looket at sudo but it doesn't have any switch like -c to invoke my app from shell
su: invalid option -- 'u'
Usage: su [options] [LOGIN]
Options:
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login make the shell a login shell
-m, -p,
--preserve-environment do not reset environment variables, and
keep the same shell
-s, --shell SHELL use SHELL instead of the default in passwd
It seems that -u doesn't work. is there any other option that could help?
i have also tried su -c "/home/p/Desktop/myscript" but have the same problem again
and looket at sudo but it doesn't have any switch like -c to invoke my app from shell
On Sun, Jun 24, 2012 at 12:55 PM, Torsten Giebl <wizard <at> syntheticsw.com> wrote:
Hello !Please try if changing this line from :
> i have an SDL program that runs ok when i run it from shell. also i have an
> script that i have put it in startup applications of Gnome/Debian that runs
> the program automatically when system boots. i have decided to autostart my
> app when the machine comes back from suspend mode so i put this script in
>
> "/etc/pm/sleep.d/myscript"
>
> #! /bin/sh
> case "$1" in
> thaw|resume)
/home/p/Desktop/myscript
to:
su -u p -c "/home/p/Desktop/myscript"
helps, it might.
If p is your user name, i guessed from /home/p/...
CU
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_______________________________________________ SDL mailing list SDL <at> lists.libsdl.org http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
RSS Feed