Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Create a simple web portal/GUI to execute scripts? Post 302823797 by poops on Thursday 20th of June 2013 12:16:46 AM
Old 06-20-2013
Create a simple web portal/GUI to execute scripts?

Very new to this.....

What I would like to do:

Create a simple GUI/Web portal with 3 buttons and 1 text field

The three buttons need to take the input into the text field and use that as the variable to execute scripts located on a server

Problem:

How can i get the buttons on the page to ssh to the server and kick off the scripts?

I can create the scripts easily enough as they are comprised of simple SQL update statements, but I'm at a loss as to how they would communicate with the portal/gui page (what programming language etc should I be looking into to achieve this?)

Any pointers would help, just really looking for a direction ie this can be achieved by using ______.

Goal:

Instead of having to run these update stmnts from the command line or in workbench etc, the main goal is to have a page I can leave open in the browser at all times and just plug a variable into the text field and select the correct button for what i want it to update.

flow im thinking of click button > ssh to correct server > kick off shell script with the update SQL using the variable provided

Is this possible/efficient? Or is there an easier way?

---------- Post updated at 11:16 PM ---------- Previous update was at 10:42 PM ----------

should have started searching old topics in the forum before posting, pretty confident ill be able to find something after checking a few of these topics

but if any has any feedback please feel free to post
 

10 More Discussions You Might Find Interesting

1. Linux

web portal <--> linux configuration

dear experts, i m newbies of linux. i found that my linux server does not support the webportal links, causing the filing system in the webportal dissapear as well. i suspect 1st: configuration of linux not set properly, 2nd: access link lost for the filing system. please give me a rough idea... (1 Reply)
Discussion started by: clemeot
1 Replies

2. Shell Programming and Scripting

GUI for shell scripts

I want to create a GUI which runs shell scripts in the background. What should I use for creating that GUI. I would be nice if you could point me to some resources where I can learn to create a GUI (2 Replies)
Discussion started by: lassimanji
2 Replies

3. Shell Programming and Scripting

GUI for bash scripts?

Hello everyone! I'm looking for a way to build a GUI for various bash scripts I've written. Is there any "good" way to do it? I've heard about python/gtk+,qt and other stuff, but I've absolutely no idea where I should look at. Thanks a lot in advance! Regards, xenator EDIT: ... (1 Reply)
Discussion started by: xenator
1 Replies

4. Shell Programming and Scripting

Create A Simple GUI For Shell Script

Hi all! Im wondering if its possible to create a GUI for a shell script I just got done writing as the people that will be using it dont like the command line all to well. Just something simple with radio buttons to select options, maybe a text field to enter a location to save the file generated... (1 Reply)
Discussion started by: Grizzly
1 Replies

5. Solaris

Web gui for mail?

I am using Solaris 10, and would like a web gui for mail or can replace the mail server if needed, it doesnt need to be anything elaborate, just something where i can view mail via a web browser rather than command line and hitting 'd' a 1000 times to delete all my cron job mails etc :p I've... (8 Replies)
Discussion started by: ippy98
8 Replies

6. Shell Programming and Scripting

GUI for cshell scripts

Hi, I want to know whether it is possible to use GUI for cshell scripts? Thanks Sarbjit (0 Replies)
Discussion started by: sarbjit
0 Replies

7. Shell Programming and Scripting

GUI for shell scripts

what GUI can be used with shell scripting for example if i want to say hello in prompted window thnx in advance (3 Replies)
Discussion started by: semosam
3 Replies

8. Fedora

Automatically execute a software without gui at boot

hi all, this is my first post here...i hope that this is the correct section to write my question. I have a distro linux without gui, only text mode. So, it's possible run automatically a command or a program as "top" or "ping" and get the result on the main shell , after the boot and after... (6 Replies)
Discussion started by: gangiaemi
6 Replies

9. Shell Programming and Scripting

Create a GUI from where in we can execute unix commands

Hello Experts, In my current job I need to upgrade a web GUI to execute Unix commands in a server....I am completely new to programming--So can anyone here help me out with initial steps... Please notice that statement completely new to programming means-I never did it, SO I might keep on coming... (1 Reply)
Discussion started by: mhadi
1 Replies

10. Shell Programming and Scripting

Help making simple perl or bash script to create a simple matrix

Hello all! This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician. Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix: ... (16 Replies)
Discussion started by: torchij
16 Replies
istgtcontrol(1) 					      General Commands Manual						   istgtcontrol(1)

NAME
istgtcontrol - istgt iSCSI target command utility SYNOPSIS
istgtcontrol [options] <command> [<file>] DESCRIPTION
istgtcontrol is a command and control utility for istgt(1). It can be used to query and change the status of a local or remote istgt instance. istgtcontrol supports the commands denoted below to interact with the istgt instance. By default it connects and authenticates to the iSCSI target portal specified in the istgtcontrol.conf configuration file and uses CHAP credentials denoted there, if any. Both can be overrid- den by using the respecitve command line arguments. COMMANDS
istgtcontrol understands the following commands which can be forwarded to istgt: noop Do not actually do anything, but test responsiveness of the portal and test CHAP credentials only. version Retrieve the istgt version number providing the iSCSI portal istgtcontrol connected to. list List all, or the specified targets only, which shared by the portal. load Load a new media to the specified unit. This command issues the same command as if a drive tray had been closed on a SCSI device. unload Unload a media from the specified unit. This command issues the same command as if the drive tray had been opened from a SCSI device. change file Change the loaded media by the specified unit. This command is equivalent as if a new media (for example a DVD-ROM or tape car- tridge) had been inserted in the SCSI drive. The "file" argument is interpreted as filename to be loaded. reset Reset the specified LUN of the portal. info Display all connections of the portal OPTIONS
-c config Use specified file as configuration file instead of the default file. -h host Override the target portal by the specified host name or IP address. This defaults to "localhost" if no other host was specified in the configuration file. -p port Override the target portal port by the specified port number. This defaults to "3261" if no other port was specified in the configu- ration file. -t target Specifies the target IQN which should be affected by the command given. There may be a default given in the configuration file. The keyword "all" is accepted by some commands and matches all exported volumes. -l lun Specifies the target LUN which should be affected by the command given. This defaults to "0" unless another default was provided in the configuration file. -f flags Specifies flags passed to the portal when loading a new media. This defaults to "ro". Supported flags are: "ro", "rw", "extend" and "dynamic". -s size Specifies the size of the meda to be loaded. The default is to auto-detect the media size. -q Quiet mode, supress non-critical outputs. -v Verbose mode, gives more output during operations. -A method Sets the preferred authentication method for logging in to the portal. This overrides any method specified in the configuration file. Supported methods are either CHAP/Mutual or CHAP/Auto. -U user Sets the user to authenticate on the portal. This overrides any username specified in the configuration file. -S secret Set the secret used to authenticate on the portal. This overrides any secret specified in the configuration file. -M muser Set the mutual authentication user. This overrides any user specified in the configuration file. -R msecret Set the mutual authentication secret. This overrides any secret specified in the configuration file. -H Display a brief usage summary and exit. -V Display the istgtcontrol version number and exit. FILES /etc/istgt/istgtcontrol.conf Configuration file SEE ALSO
istgt(1) AUTHORS
Daisuke Aoyama <aoyama@peach.ne.jp> This manual page was written by Arno Toll (<debian@toell.net>) for the Debian GNU/kFreeBSD system (but may be used by others). istgtcontrol Oct 07, 2011 istgtcontrol(1)
All times are GMT -4. The time now is 04:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy