Run Shell Commands via HTML on a client machine


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Run Shell Commands via HTML on a client machine
# 1  
Old 09-22-2009
CPU & Memory Run Shell Commands via HTML on a client machine

Hi guys, so, I have a server running an sqlite database which is accessed by many client machines working as hardware testers, whenever something fails and needs to be replaced the operator would have to enter the Serial Number of the part being replaced as well as some other data. and additionally, i would like to store some log files from the tester into this database, extracting this logfiles is not easy as it would involve typing long commands on a terminal by people who know nothing about linux. and i preffer not having them play with commands because it would complicate things.

Is there a way that i can just have some button in the server's webpage that executes a set of commands on the client side to grab these files and put them in a tarball so the operator only has to attach them like an email attachment for the database to store them?

Kind of like this one, but the script would be executed on the client side:

https://www.unix.com/shell-programmin...ge-button.html

Thanks all Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to run UNIX commands on remote machine from windows?

Hi All, I am working in support and we are planning to automate a system to reduce the direct manual intervention to core system. Please find the below details. 1. we have a web application that runs on Windows Platform. 2. From web application, we need to connect to remote Unix machine.... (6 Replies)
Discussion started by: Balaji K
6 Replies

2. Linux

Unable to connect to Server machine from a client machine using ftp service

Hi, Could you please help me with the below issue.. I'm running RHEL6 OS on both server (192.168.0.10) and client machines (192.168.0.1). I'm trying to connect to server from the client machine using ftp service. I have installed vsftpd daemon on both the machines. I'm getting... (4 Replies)
Discussion started by: raosr020
4 Replies

3. UNIX for Dummies Questions & Answers

how to use ssh to run shell script on a remote machine?

how to use ssh to run shell script on a remote machine? ssh user@remote sh ./script.unx i ran the above command ./script.unx HAS NOHUP COMMAND IN ITS BODY, I AM GETTING ERROR AS NOHUP NOT FOUND... i tried to run that script from remote server, its working fine do ineed to set... (6 Replies)
Discussion started by: only4satish
6 Replies

4. Shell Programming and Scripting

shell script to run after ssh logout from another machine

Scenario: I currently manager a cluster at work which is on a private network and i constantly need to ssh to other clients for diags e.t.c. I created a debain client which i use as my gateway to get to all the clients on the private network and I then created a Shell menu script which will make... (4 Replies)
Discussion started by: defamer
4 Replies

5. OS X (Apple)

Geek Tool Shell Commands in HTML

I'm new around these parts but I figured I might as well ask something thats been bothering me for a while. I have a little HTML experience and really none at all with unix. I have been running a geektool-a preference pane that outputs shell commands onto the desktop for Mac. Recently I have been... (5 Replies)
Discussion started by: neroyalty
5 Replies

6. Shell Programming and Scripting

Shell scripting problems - Commands not on local machine

Hello all- I have done a lot of searching tonight, but all leads seem to be dead ends. Forgive me if this has been covered, but I've searched the forum and the internet. I am having trouble building a shell script which uses SSH to login to our schools 1024 cluster grid. The issue that I am... (1 Reply)
Discussion started by: Sagan
1 Replies

7. Shell Programming and Scripting

Run a shell script from one host which connext to remote host and run the commands

I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies

8. Shell Programming and Scripting

Run shell commands via HTML webpage/button?

Hey guys, I got a issue here... we have a development box and a UAT box that our webmasters use, they do the webpage development on the development box and and save changed files to a particular directory on the dev machine. At a certain time of the day a cronjob kicks off and the... (3 Replies)
Discussion started by: zeekblack
3 Replies

9. UNIX for Advanced & Expert Users

Problem in running bash shell commands on HP-UX machine

Hello All, After login to the server we are explicitly calling /usr/local/bin/bash to activate bash shell properly. But since commands are not executing properly so I think it is not initialized well. I am facing following problems: 1) If I want to have a look on a particular file using tail... (6 Replies)
Discussion started by: abhishek0071
6 Replies

10. Shell Programming and Scripting

How to run unix commands in a new shell inside a shell script?

Hi , I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell. So scenario is that - I need to have one shell script which is ran as a part of crontab - in this shell script I need to do a... (2 Replies)
Discussion started by: hkapil
2 Replies
Login or Register to Ask a Question
mountd(1M)																mountd(1M)

NAME
mountd, rpc.mountd - server for NFS mount requests and NFS access checks SYNOPSIS
n] DESCRIPTION
is an RPC server that answers requests for NFS access information and file system mount requests. It reads the file to determine which file systems are available for mounting by which remote machines. See sharetab(4). running on the local server will contact the first time an NFS client tries to access the file system to determine whether the client should get read-write, read-only, or no access. This access can be dependent on the security mode used in the remote procedure call from the client. See share_nfs(1M). The command also provides information as to what file systems are mounted by which clients. This information can be printed using the showmount(1M) command. The daemon is automatically invoked if and in Only superuser can run the daemon. Options The following options are supported: This is an obsolete option. All messages and errors are logged to Reject mount requests from clients. Clients that have file systems mounted will not be affected. Specify tracing level n, where n can have one of the following values: Errors only (default). Errors, requests handled by mountd, results, and the names of the main functions leading to the result Run the command in verbose mode. Each time determines what access a client should get, it will log the result to the as well as the names of the main functions leading to the result. WARNINGS
If is running, must also be running in order to be assured that the NFS server can respond to requests. Some routines that compare hostnames use case-sensitive string comparisons; some do not. If an incoming request fails, verify that the case of the hostname in the file to be parsed matches the case of the hostname called for, and attempt the request again. If a client crashes, executing on the server will show that the client still has a file system mounted. In other words, stale entries may accumulate in for clients that crash without sending an unmount request. Also, if a client mounts the same remote directory twice, only one entry appears in Doing a of one of these directories removes the single entry and no longer indicates that the remote directory is mounted. AUTHOR
was developed by Sun Microsystems, Inc. FILES
shared file system table list of all hosts having file systems mounted from this machine rpc.mountd log file for messages and errors SEE ALSO
nfsd(1M), share(1M), share_nfs(1M), showmount(1M), sharetab(4). mountd(1M)