Sponsored Content
Top Forums Shell Programming and Scripting I need to make a control panel for a Linux script Post 302918079 by sea on Sunday 21st of September 2014 02:58:17 AM
Old 09-21-2014
Hello Sam

Given i understood you properly, and beeing the author of it, i'd like to suggest TUI.
Now TUI is basicly a bash based Text User Interface, and for what i understand, you might like tui-browser of if.

Let me explain what tui-browser does...
The 'most simple' method, once installed, is to change to the directory and just call tui-broser.
Of course, that could also be passed using '-p /path/to/base'.

From there on, that dir will be the 'base' dir, showing folders as sections, and files as action.
You could either go without arguments for 'text' mode, or "-m num" for numeric.
Text mode would require you to type the [file/folder]name but also enable you to pass argumetns, numeric would be an easy 'select' menu.
See screenshot example (blue, white lines and those '# |' at the sides) which shows the numeric mode, 'back' and 'quit' beeing available at all stages.

By placing a file called 'default.info' within a folder, it'll show up as text above the selection menu. That way, once can inform the user about anything special regarding that section/task.

Options available:
Code:
tui-browser (0.5)
Advanced File Browser for the cli, based on TUI
Usage: 	tui-browser [options]
Where options are:
	-h(elp)		This screen
	-b(lacklist)	ARG	TODO
	-d(ir)  	ARG	Folders will be labled as ARG
	-C(onfig)	FILE	Full path to configfile of the project
	-D(efault)	NAME	Changes the filename startings from 'default' to 'NAME'
				These files will be hidden from the menu, and according to their
				extension be called on diffrent purposes...
				default.info	- Will be shown upon folder entry
				default.cmd	- Will be executed upon folder entry
	-f(ile) 	ARG	Files will be labled as ARG
	-l(ocation)  	ARG	Location will be labled as ARG
	-m(ode) 	ARG	Can be 'text' (nice n' slow, default)
				or 'num' (functional n' fast)
	-p(ath)		ARG	Will use ARG as basedir
	-n(oclear)		Dont clear screen after menu actions
	-s(ource)	PATH	Sources all files in that dir, or that one file
	-t(itle)	ARG	Title-label (upper-left) is set to ARG
	-u(ser) 	ARG	User-label (upper-right) is set to ARG

Note that this is work in progress, almost done though, and the last major fix i need to write next is to empty the vars of the (if passed, found, exported) CONFIG and SOURCE arguments.

The GIT repositry supplies an 'install.sh' script, and if the server's redhat based, the repo might do the trick too, and be more update friendly either.
Code:
[FedoraPeople-sea]
name=sea's devel packages
baseurl=http://sea.fedorapeople.org/repo
enabled=1
gpgcheck=0

Hope i understood you right, and that this helps.
NOTE: Must be installed on the server and called after ssh connection.
Have a nice weekend Smilie


EDIT:
DOH there has been much of an edit of you.. very few text compared to first text ?!

EDIT2:
Understand, the screenshot is of a work in progress project of mine, which just happens to use tui-browser too, and just by accident (regarding this thread) showing that ssh-demo-info.
TUI does not come with ANY kind of SSH relation.
Sorry cant help with jsch.
I need to make a control panel for a Linux script-ds-ssh-info-demojpg

Last edited by sea; 09-21-2014 at 04:05 AM..
 

2 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

OS X / fsck / apps dont work no control panel

Alright. My neighbor kid brings me his iBook and says nothing works. He decided to move the file system to his likeness and that semed to create the problems. Now he doesn't have access rights to his home. I have run fsck over and over again and I keep getting ** fs modified ** I have also... (0 Replies)
Discussion started by: maxwell
0 Replies

2. UNIX for Dummies Questions & Answers

Control Panel seeking.

Hi, guys. My friends and I used to rent space from our ISP, and they applied Cpanel to help us to config. Recently we just upgrade to the dedicated server plan, and there is nothing but only the os has been installed. Since Cpanel is the commercial software, we cannot afford it, we need to find a... (2 Replies)
Discussion started by: HOUSCOUS
2 Replies
All times are GMT -4. The time now is 02:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy