script for samba to run to shutdown server?

General Linux server topics in here.
iambutaseeker
Posts: 11
Joined: Tue Aug 28, 2012 6:15 pm

script for samba to run to shutdown server?

Post by iambutaseeker » Sat Oct 06, 2012 5:38 pm

I have a samba share called "shutdown". I want to write a script that is run when that share is logged into that will shutdown my server. I regularly view movies using my xbox and don't want to have to walk into my living room to shutdown my server. (RPC stuff from client is not an option)

sys specs:
Debian Squeeze
samba 3.5.6

No matter what bash script I write, I can't get it done. Can someone help me?
__________________
"I don't care how meaty he is, I'm NOT getting my weather from a urologist!"

You can't change the past or avoid the future,
but you can change the future and avoid the past!

i_amlegend
Posts: 30
Joined: Tue Aug 28, 2012 6:10 pm

Re: script for samba to run to shutdown server?

Post by i_amlegend » Sat Oct 06, 2012 5:42 pm

Because there are no good SSH clients for the Xbox.

@Hailey's_Comet: You don't even need a separate share for this. Copy a small mp3 file to your normal share and call it shutdown.mp3, so that you can open it with the Xbox. Now you can use inotify to wait for that file to be opened by you and use that event to shutdown the system.

i017535
Posts: 17
Joined: Tue Aug 28, 2012 6:11 pm

Re: script for samba to run to shutdown server?

Post by i017535 » Sat Oct 06, 2012 5:50 pm

Because I am trying to get this done with the ability to use ANYTHING that can access a simple samba share. I am currently writing this from a laptop logged into my server with XDMCP tunneled in SSH, which is beyond mere SSH. I have a myriad of means already, I just want one more.

Besides, if I can get it done it will be the end to a long project.
__________________
"I don't care how meaty he is, I'm NOT getting my weather from a urologist!"

You can't change the past or avoid the future,
but you can change the future and avoid the past!

Post Reply Previous topicNext topic

Return to “General Server”

Who is online

Users browsing this forum: No registered users and 1 guest