I am using OpenSUSE 12.3 with XFCE DE.Now I am trying to run Terminal Server Client at startup so that I can get Windows login screen directly and when I close that connection the system should automatically shut Down.I have done the following
1.Created a script with following command and added it in the startup applications
I presume “startup applications” means after you logged in. In this case if you log in as normal (non root) user you are not allowed to run /sbin/poweroff. You may want to look at using sudo to run it.
Actually the second command is not at all getting executed.My requirement is I start a connection with tsclient -s win7 and when I click cancel on the login page or log off the session it should shut down immediately without showing desktop
On 2013-09-28 17:26, nishanth9042 wrote:
> Actually the second command is not at all getting executed.My
> requirement is I start a connection with tsclient -s win7 and when I
> click cancel on the login page or log off the session it should shut
> down immediately without showing desktop
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
when I try this “tsclient -s win7;systemctl poweroff” The computer gets shut down once the first command is executed.But I want the computer to shut down only when the first command is terminated or cancelled by the user or after the successful completion of first command.