Thread
:
Share your shell scripts
View Single Post
Schturman
2013-01-01 , 22:36
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#
9
ladoga
, can you help me to create a simple script that can check if SimpleHTTPServer runs or not and if it is running -> command to close, if not running -> start this "httpshare ~/MyDocs/Movies"
I want to create desktop icon for this:
1. one click = check if SimpleHTTPServer run or not and if it is runing -> command to close.
2. second click = check if SimpleHTTPServer run or not and if it is
NOT
run -> start this "httpshare ~/MyDocs/Movies"
Thanks
__________________
Lausanne & Lyon de descente...
----------------
Schturman's home page
Schturman's repo on openrepos
RPM packaging directly on your Jolla phone
.
Root & User SSH access to Jolla via WinSCP
.
Root and User SSH access to Jolla via Nautilus on Linux PC
.
Last edited by Schturman; 2013-01-01 at
23:38
.
Quote & Reply
|
Schturman
View Public Profile
Send a private message to Schturman
Visit Schturman's homepage!
Find all posts by Schturman