Suse User Posted February 24, 2013 Share Posted February 24, 2013 I've been trying to keep my Unraid server as plugin free as I can, but I really want to use preclear_disk.sh without having to keep my mac permanently connect to my server. I did find a thread previously that I can't seem to locate now that explained how to run the script inside a terminal on the Unraid server. I've installed UnMenu and from the list of plugins 'screen' seems to be the most likely candidate. I'm unclear how you invoke the screen plugin to run the preclear_disk.sh script. The usage of screen appears to be: screen [-opts] [cmd [args]] Options: -a Force all capabilities into each window's termcap. -A -[r|R] Adapt all windows to the new display width & height. -c file Read configuration file instead of '.screenrc'. -d (-r) Detach the elsewhere running screen (and reattach here). -dmS name Start as daemon: Screen session in detached mode. -D (-r) Detach and logout remote (and reattach here). -D -RR Do whatever is needed to get a screen session. -e xy Change command characters. -f Flow control on, -fn = off, -fa = auto. -h lines Set the size of the scrollback history buffer. -i Interrupt output sooner when flow control is on. -l Login mode on (update /var/run/utmp), -ln = off. -list or -ls. Do nothing, just list our SockDir. -L Turn on output logging. -m ignore $STY variable, do create a new screen session. -O Choose optimal output rather than exact vt100 emulation. -p window Preselect the named window if it exists. -q Quiet startup. Exits with non-zero return code if unsuccessful. -r Reattach to a detached screen process. -R Reattach if possible, otherwise start a new session. -s shell Shell to execute rather than $SHELL. -S sockname Name this session <pid>.sockname instead of <pid>.<tty>.<host>. -t title Set title. (window's name). -T term Use term as $TERM for windows, rather than "screen". -U Tell screen to use UTF-8 encoding. -v Print "Screen version 4.00.03 (FAU) 23-Oct-06". -wipe Do nothing, just clean up SockDir. -x Attach to a not detached screen. (Multi display mode). -X Execute <cmd> as a screen command in the specified session. Would 'screen preclear_disk.sh sdd' work? Could someone tell me the command line I'd need to enter to run pre clear_disk.sh inside screen please? or of an alternative method of pre-clearing without having to remain connected to the server for many days whilst it runs? Thanks, Mark. Link to comment
tw332 Posted February 24, 2013 Share Posted February 24, 2013 Just type "screen".. This will start a new session, where you can launch the preclear script. Once running, detach the screen session using Ctrl+A, Ctrl+D. Link to comment
Suse User Posted February 24, 2013 Author Share Posted February 24, 2013 Just type "screen".. This will start a new session, where you can launch the preclear script. Once running, detach the screen session using Ctrl+A, Ctrl+D. I did try typing "screen" and got the response "Cannot find terminfo entry for 'xterm-256color'." I assumed I needed more arguments. Thanks, Mark. Link to comment
tw332 Posted February 24, 2013 Share Posted February 24, 2013 BTW... The wiki post at http://lime-technology.com/wiki/index.php/Configuration_Tutorial#Preclearing_With_Screen should help Link to comment
tw332 Posted February 24, 2013 Share Posted February 24, 2013 You need to change your emulation options, which terminal client are you using? Link to comment
Suse User Posted February 24, 2013 Author Share Posted February 24, 2013 BTW... The wiki post at http://lime-technology.com/wiki/index.php/Configuration_Tutorial#Preclearing_With_Screen should help THAT'S THE PAGE I was looking for, where I previously found the info Thanks! Searching for the word screen understandably came up with MANY results. You need to change your emulation options, which terminal client are you using? I'm using Terminal on the Mac Link to comment
tw332 Posted February 24, 2013 Share Posted February 24, 2013 I use Putty on the PC so can't confirm your exact steps but try : In the terminal app you are using to ssh, go to preferences -> advanced -> Declare terminal as: -> xterm-color (or something besides xterm-256color) I use ConnectBot on Android to also connect to the unRAID box and had a similar error message to yours when attempting to re-attach to screen. If I remember, I changed the emulation mode to xterm. Link to comment
MyKroFt Posted February 24, 2013 Share Posted February 24, 2013 unmenu has a screen package with termcap info as well.... Myk Link to comment
Suse User Posted February 24, 2013 Author Share Posted February 24, 2013 In the terminal app you are using to ssh, go to preferences -> advanced -> Declare terminal as: -> xterm-color (or something besides xterm-256color) That did the trick, thanks unmenu has a screen package with termcap info as well.... Thanks, I'll take a look at that as well. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.