[19. June 2013] Soundcloud® available now | [7. June 2013] Youporn available now | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 RC1 [13 June 2013] | A-200/A-210 RC1 [13 June 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
Remote shutdown
04-05-2011, 03:29 PM
Post: #1
Remote shutdown
Hi,

I've already explained my problem in this thread: http://www.networkedmediatank.com/showth...?tid=50793

To make it short: does anyone know how I can shutdown my popcorn A110 via telnet?

Thanks,
Cadish
Find all posts by this user
Add Thank You Quote this message in a reply
04-05-2011, 03:49 PM
Post: #2
RE: Remote shutdown
halt

or

shutdown -h now


(04-05-2011 03:29 PM)Cadish Wrote:  Hi,

I've already explained my problem in this thread: http://www.networkedmediatank.com/showth...?tid=50793

To make it short: does anyone know how I can shutdown my popcorn A110 via telnet?

Thanks,
Cadish

Feature request for the A200/C200:Option to disable Popcorn Upscaling - let your TV/AVR upscale
We need your VOTE!
Find all posts by this user
Add Thank You Quote this message in a reply
04-05-2011, 05:51 PM
Post: #3
RE: Remote shutdown
And I guess you'll need a full-featured busybox like the one included in CSI telnetd.
Find all posts by this user
Add Thank You Quote this message in a reply
04-05-2011, 06:30 PM (This post was last modified: 04-05-2011 06:30 PM by Cadish.)
Post: #4
RE: Remote shutdown
Thanks for your answers!

I've installed both Dropbear as Telnetd and I get the following:

Code:
/opt/sybhttpd/localhost.drives/HARD_DISK # shutdown -h now
/bin/sh: shutdown: not found
Code:
root@popcorn /root# shutdown -h now
-sh: shutdown: not found
Find all posts by this user
Add Thank You Quote this message in a reply
04-05-2011, 08:05 PM
Post: #5
RE: Remote shutdown
I'm not at home to test, but maybe specifying full path would work, like this:
/sbin/shutdown -h now

PCH C-200, Barracuda 2TB, Liteon IHOS104-08, Yamaha HTR-5630, LG 55LH90
Find all posts by this user
Add Thank You Quote this message in a reply
04-06-2011, 06:43 AM
Post: #6
RE: Remote shutdown
I think shutdown is not available in A-110, but either halt or poweroff should do the job to shutdown the player.
Find all posts by this user
Add Thank You Quote this message in a reply
04-06-2011, 08:09 PM (This post was last modified: 04-06-2011 09:08 PM by Cadish.)
Post: #7
RE: Remote shutdown
poweroff does the job! Thanks a lot rolandhii!!
How can I update my crontab upon boot?

I added this to /share/start_app.sh:
Code:
crontab -l > /tmp/crontab.tmp
echo "00 * * * * poweroff" >> /tmp/crontab.tmp
crontab /tmp/crontab.tmp

crontab itself doesn't seem to get updated. If I run these commands manually, it works.
Find all posts by this user
Add Thank You Quote this message in a reply
04-06-2011, 09:51 PM
Post: #8
RE: Remote shutdown
cant u do
crontab -e ?

like normal linux?
Find all posts by this user
Add Thank You Quote this message in a reply
04-07-2011, 12:49 PM (This post was last modified: 04-07-2011 07:15 PM by Cadish.)
Post: #9
RE: Remote shutdown
yes, that works. Running them manually is not the problem. The problem is that my crontab doesn't get updated when I insert the commands in /share/start_app.sh
Find all posts by this user
Add Thank You Quote this message in a reply
04-08-2011, 02:25 PM
Post: #10
RE: Remote shutdown
yes but crontab -l = list not edit as you have in your .sh
or am i not getting it ?
Find all posts by this user
Add Thank You Quote this message in a reply
04-11-2011, 03:43 PM
Post: #11
RE: Remote shutdown
No, doesn't work. Anyone else knows a solution?
Find all posts by this user
Add Thank You Quote this message in a reply
11-03-2011, 01:13 PM
Post: #12
RE: Remote shutdown
Hi I am also searching for solution for this problem. Anybody?
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Pure Web Remote Control or Listening Audio with switched off TV pompon 165 70,202 03-27-2013 08:05 PM
Last Post: luciano63
  NMT remote iPhone native app. racermonoid 390 132,327 03-06-2013 08:01 PM
Last Post: mindnever
  X-100 Remote Codes Banjobeni 0 1,372 08-04-2011 10:13 PM
Last Post: Banjobeni
  is there an android remote control for the A110? jadeddog 2 2,825 06-04-2011 11:27 PM
Last Post: dw_bobby
  RAM v0.1 Remote Application Manager: more sebacool 2 3,111 03-08-2011 12:13 PM
Last Post: sopoyo
  Setting up Popcorn Hour to Logitec Harmony Remote collingwood 5 9,806 12-30-2010 08:54 AM
Last Post: halfelite
  music player daemon MPD & PCH Remote control beatnut88 19 10,207 12-22-2010 12:31 AM
Last Post: dooly
  Android app for remote NZB? Posible 4 3,975 08-23-2010 09:58 AM
Last Post: cloink
  Remote command through PC. cengaver83 0 1,322 08-08-2010 05:50 PM
Last Post: cengaver83
  Remote codes PCH A-110 Jeffrey 1 2,609 04-19-2010 06:06 PM
Last Post: nuke12

Forum Jump: