[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)
Thread Closed 
execute a script
09-27-2009, 09:40 PM (This post was last modified: 09-27-2009 09:40 PM by kaceby.)
Post: #1
execute a script
Hello,
I wonder if it is possible to run a script to the pch.
In fact I have an external hard drive that I used to transfer files from my computer to the pch, and I know if a script it would be possible to automate the copy / paste.
Find all posts by this user
09-27-2009, 10:50 PM
Post: #2
RE: execute a script
Sure, there's telnet/shellscript and php so you have the basics in place.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
09-28-2009, 03:29 AM
Post: #3
RE: execute a script
(09-27-2009 09:40 PM)kaceby Wrote:  Hello,
I wonder if it is possible to run a script to the pch.
In fact I have an external hard drive that I used to transfer files from my computer to the pch, and I know if a script it would be possible to automate the copy / paste.

I believe that's why people still use FTP today! Wink

Tongue

You can also find a thread somewhere on how to use SSH, RCP, and a GUI file explorer.... Search. Smile
Find all posts by this user
09-28-2009, 07:39 AM
Post: #4
RE: execute a script
garp99; OP says he uses external drive for transferring files; so I guess that implies using a watchdog script for mounts, and some trigger to rsync or copy, move (whatever is preferred) the files.

OTOH, if it is possible to network the NMT, garp99 scores all points! If you are on the same LAN you can just use a decent FTP client featuring scheduling/mirroring etc.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
09-28-2009, 09:19 AM
Post: #5
RE: execute a script
The problem is that I'm wireless, the rate of transfer by FTP is 3 to 4 MB / s, while USB it should be much higher because it takes me 3 minutes for transfer 4 a 5 go against 30 min in FTP.
For now I use the File Mode to copy / paste my files.
But for that script works, I'll address this in order to find a way to transfer more funWink
Find all posts by this user
09-28-2009, 09:59 AM
Post: #6
RE: execute a script
go? is that Gigabyte?

If you have a 24/7-ish server you can let it trickle over wifi, but yeah it takes a long time if you have a batch.

Best of luck with the scripting! I'm sure there are other users who would be very interested in such a solution.

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
09-28-2009, 10:03 AM (This post was last modified: 09-28-2009 10:16 AM by kaceby.)
Post: #7
RE: execute a script
Unfortunately no, I'm not gigabyte.
I shall therefore focus on the script, and I'd make a new topic when I find a good script that worksSmile
Thank you for this information.
Just a quick question that I forget:
At the execution of the script, php Notament, how do I execute the pch?
Let me explain, if I create a php script that I put on the hard disk, how to make the pch and executed?
I should create a link on the index. Htm?
Find all posts by this user
09-28-2009, 10:17 AM
Post: #8
RE: execute a script
To answer your original question.

Yes; you can: create a shell script and store it i.e. on the NMT's hdd's root (in effect /share).
Then alter the start_app.sh and add the call to your script below the magic marker.
Using ftp or shell set the execute permissions on your script file.

If you want to go a step further you can create a AppInit application (CSI package format) which will allow you to use more nmt's features.
http://nmtinstaller.com/?p=createpackage

Good luck!

Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer
Visit this user's website Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Star [Apps] Bierdopje 4 NMT PHP script SilverViper 4 1,423 11-26-2012 04:57 PM
Last Post: Djiest
  Need help debugging a simple script to enable NTFS write on HDD user33 10 3,279 04-05-2011 06:05 PM
Last Post: nuke12
  Help with Server Timeout Error running a script hindibuff 0 1,741 03-29-2011 06:21 AM
Last Post: hindibuff
Bug Executing a script on the server from the NMT? johnk 6 3,338 02-21-2011 10:59 PM
Last Post: johnk
  [AUDIO] lastfm script (bookmarks, auto-login, etc.) mk11 81 36,617 10-09-2010 01:45 AM
Last Post: opfeifer
  help with auto unrar script. kiranos 0 1,828 05-15-2010 10:24 AM
Last Post: kiranos
  Launch script after playing a video antro31 4 1,999 04-03-2010 06:32 PM
Last Post: antro31
Exclamation Scheduled playback script kdavid 0 991 03-16-2010 10:27 AM
Last Post: kdavid
  Auto_Mount v0.1 - Script to auto mount USB drives with NAME vaidyasr 41 17,373 02-12-2010 03:22 AM
Last Post: vaidyasr
Lightbulb Watchdog script to get rid of wireless (WiFi) disconnections keramidas 24 11,239 12-14-2009 11:34 PM
Last Post: happy

Forum Jump: