Hello,
When I leave the X session, how can I execute a shell command ? Thank.
If the command does not require graphics.
./command if the command is in your current directory /path to command/command if the command is not in your PATH command if the command is in your PATH
To see your PATH
printenv PATH
On Fri, Mar 25, 2011 at 2:11 PM, Patrick Dupre patrick.dupre@york.ac.ukwrote:
Hello,
When I leave the X session, how can I execute a shell command ? Thank.
--
========================================================================== Patrick DUPRÉ | | Department of Chemistry | | Phone: (44)-(0)-1904-434384 The University of York | | Fax: (44)-(0)-1904-432516 Heslington | | York YO10 5DD United Kingdom | | email: patrick.dupre@york.ac.uk ========================================================================== -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
On 3/25/11, Patrick Dupre patrick.dupre@york.ac.uk wrote:
Hello,
When I leave the X session, how can I execute a shell command ?
If you start it with startx, as the subject seems to suggest, then you could do
startx ; your_shell_command
or
startx && your_shell_command
and then your shell command will not be executed if startx failed.
HTH
Andras