rwdziprwdwshell 0.95
Sign up to get free protection for your applications and to get access to all the features.
- data/HowTo_Shell.txt +244 -0
- data/rwdshell.rb +244 -0
- data/rwdwshell-0.95.zip +0 -0
- metadata +42 -0
data/HowTo_Shell.txt
ADDED
@@ -0,0 +1,244 @@
|
|
1
|
+
= RwdShell Program
|
2
|
+
|
3
|
+
How to Use the Shell Program (rwdshell)
|
4
|
+
|
5
|
+
== What is is
|
6
|
+
|
7
|
+
rwdshell is a web brower interface to operating system shell commands
|
8
|
+
|
9
|
+
|
10
|
+
download from http://rubyforge.org/frs/?group_id=444
|
11
|
+
|
12
|
+
run shell commands
|
13
|
+
|
14
|
+
|
15
|
+
The GUI interface used is RubyWebDialogs
|
16
|
+
|
17
|
+
|
18
|
+
Start the program by typing<br>
|
19
|
+
ruby init.rb
|
20
|
+
|
21
|
+
Then point your web browser to:
|
22
|
+
http://localhost:7705/
|
23
|
+
|
24
|
+
== using shell commands
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
Enter the shell command you want to run for in the browser form and press execute.
|
29
|
+
After a second the browser should fill with the results of the command.
|
30
|
+
try ls, df, cat "filename", and other shell commands
|
31
|
+
You should be able to run one command after another
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
rwdshell scriptrunner is a web brower interface to operating system shell commands
|
36
|
+
|
37
|
+
|
38
|
+
1. run shell commands
|
39
|
+
2. run Ruby commands in the browser
|
40
|
+
3. use a calculator
|
41
|
+
4. Open brower windows with html documents
|
42
|
+
|
43
|
+
The GUI interface used is RubyWebDialogs
|
44
|
+
|
45
|
+
|
46
|
+
Start the program by typing
|
47
|
+
ruby init.rb
|
48
|
+
|
49
|
+
Then point your web browser to:
|
50
|
+
http://localhost:7705/
|
51
|
+
|
52
|
+
|
53
|
+
== To use a shell command
|
54
|
+
|
55
|
+
|
56
|
+
Enter the shell command you want to run for in the browser form and press execute.
|
57
|
+
After a second the browser should fill with the results of the command.
|
58
|
+
try ls, df, cat "filename", and other shell commands
|
59
|
+
You should be able to run one command after another
|
60
|
+
|
61
|
+
|
62
|
+
There are two ways to add scripts to rwdshell directory.
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
== Creating a script
|
67
|
+
|
68
|
+
|
69
|
+
1. Use the "Create New Script" tab
|
70
|
+
<blockquote>
|
71
|
+
The first field is the most important. It is the filename that
|
72
|
+
will be created.
|
73
|
+
myshellscript
|
74
|
+
|
75
|
+
The following line for entry is a shell command.
|
76
|
+
|
77
|
+
The last line is for comment to describe the script
|
78
|
+
When you are finished press the CreateFile button
|
79
|
+
|
80
|
+
|
81
|
+
2. Manually add an entry for a script
|
82
|
+
|
83
|
+
You can use a text editor to create a record
|
84
|
+
put information on separate lines. You can have as many lines as you want
|
85
|
+
name the file with caps and no spaces and end with .sh
|
86
|
+
mynextscript.sh
|
87
|
+
|
88
|
+
Save your file to the scripts/ subdirectory
|
89
|
+
|
90
|
+
|
91
|
+
== Viewing a recorded script entry:
|
92
|
+
|
93
|
+
|
94
|
+
* Go to "List Scripts" tab
|
95
|
+
|
96
|
+
|
97
|
+
You can get a list of all scripts by clicking the listfiles button
|
98
|
+
|
99
|
+
To see the text of a script
|
100
|
+
Type in the name of the script you want.
|
101
|
+
|
102
|
+
type it without the sh ending
|
103
|
+
myscript
|
104
|
+
|
105
|
+
Then click the "ViewScript" button
|
106
|
+
|
107
|
+
If it finds the script it will open it. It displays the text the search box.
|
108
|
+
|
109
|
+
|
110
|
+
== Ruby Commands
|
111
|
+
|
112
|
+
|
113
|
+
At the Ruby tab here are some commands you might try
|
114
|
+
|
115
|
+
print "hello" + "\n"
|
116
|
+
|
117
|
+
bar=46; print "%s" % bar, "\n"
|
118
|
+
|
119
|
+
"abc".each_byte{|c| printf "<%c>", c}; print "\n"
|
120
|
+
|
121
|
+
"a\nb\nc\n".each_line{|l| print l}
|
122
|
+
|
123
|
+
for l in "a\nb\nc\n" ; print l ; end
|
124
|
+
|
125
|
+
print "%s" % "abcdef".length
|
126
|
+
wser window, or in another browser tab.
|
127
|
+
|
128
|
+
== Using over a Network
|
129
|
+
|
130
|
+
To serve the application over your local LAN,change the last line in the
|
131
|
+
init.rb file to something like:
|
132
|
+
RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
|
133
|
+
Then you should be able to login at: http://yourhostname:8080
|
134
|
+
|
135
|
+
You have to authorize yourself. The .rwuids example is a string with
|
136
|
+
the name of the authorization file, relative to the home directory
|
137
|
+
of the user that started the service. This file has to be in the form of:
|
138
|
+
|
139
|
+
user1 = password
|
140
|
+
user2 = pass phrase
|
141
|
+
|
142
|
+
Thus the file .rwduids might contain:
|
143
|
+
|
144
|
+
erik = secret
|
145
|
+
|
146
|
+
|
147
|
+
== Requirements:
|
148
|
+
RubyWebDialogs - I am using 0.0.11 2004-3-9<br>
|
149
|
+
This package you downloaded rwddemo should have a runtime version of
|
150
|
+
the needed rubywebdialog files<br>
|
151
|
+
|
152
|
+
Ruby I am using version 1.8.2
|
153
|
+
|
154
|
+
I have tested this under Linux-Debian kernel 2.6.9
|
155
|
+
|
156
|
+
== Operation:
|
157
|
+
The code files reside in the code directory and are combined before
|
158
|
+
the main Class is loaded
|
159
|
+
|
160
|
+
The rwd files in gui are combined before the gui is activated
|
161
|
+
|
162
|
+
== Installing:
|
163
|
+
|
164
|
+
unzip the file
|
165
|
+
then cd to the directory
|
166
|
+
unzip rwdashell-x.y.zip
|
167
|
+
|
168
|
+
|
169
|
+
== Trouble shooting:
|
170
|
+
|
171
|
+
If the program is not working, try looking at the ev subdirectory. That is where
|
172
|
+
the runtime of rubywebdialogs are.
|
173
|
+
|
174
|
+
for long term installation, I would suggest putting most files in a lib directory
|
175
|
+
like /usr/lib/rwdshell
|
176
|
+
then make a writable directory the local directory for command files to be written
|
177
|
+
like ~/rwdshell
|
178
|
+
|
179
|
+
|
180
|
+
Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
|
181
|
+
|
182
|
+
Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
|
183
|
+
|
184
|
+
RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
|
185
|
+
|
186
|
+
|
187
|
+
For more information see:
|
188
|
+
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
189
|
+
|
190
|
+
For more information about RubyWebDialogs see:<br>
|
191
|
+
http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
192
|
+
|
193
|
+
Thanks, Steven Gibson
|
194
|
+
|
195
|
+
== Changelog
|
196
|
+
version 0.95
|
197
|
+
added ruby script running
|
198
|
+
add back window for more control tabs
|
199
|
+
beginning of context sensitive help
|
200
|
+
wider text boxes for configuration information
|
201
|
+
updated for rwdtinker 1.51 - finds available port and remote control
|
202
|
+
updated for rwdtinker 1.52 - cam install applets from Gems
|
203
|
+
|
204
|
+
version 0.94
|
205
|
+
updated for rwdtinker 1.44 - refactor gui directory structure
|
206
|
+
|
207
|
+
version 0.93
|
208
|
+
updated for rwdtinker 1.42 - semi-live updating
|
209
|
+
|
210
|
+
version 0.92
|
211
|
+
added script editing
|
212
|
+
script deletion
|
213
|
+
script renaming
|
214
|
+
added English module to RubyEval
|
215
|
+
added Env module to RubyEval
|
216
|
+
combined scriptrunner HowTo into shell HowTo
|
217
|
+
Changed order of tabs so script are first
|
218
|
+
|
219
|
+
version 0.91
|
220
|
+
updated for rwdtinker version 1.3
|
221
|
+
|
222
|
+
Version 0.9
|
223
|
+
updated for rwdtinker version 1.23
|
224
|
+
|
225
|
+
Version 0.7
|
226
|
+
includes script playing and Ruby eval window.
|
227
|
+
|
228
|
+
Version 0.6
|
229
|
+
added script runner
|
230
|
+
list scripts
|
231
|
+
create scripts
|
232
|
+
Replaced Readme.txt with HowTo.html
|
233
|
+
|
234
|
+
Version 0.3
|
235
|
+
Changed directory structure to work with rwdtinker 0.9 or greater.
|
236
|
+
Improved the filename selection
|
237
|
+
Changed the layout on the list screen
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
data/rwdshell.rb
ADDED
@@ -0,0 +1,244 @@
|
|
1
|
+
= RwdShell Program
|
2
|
+
|
3
|
+
How to Use the Shell Program (rwdshell)
|
4
|
+
|
5
|
+
== What is is
|
6
|
+
|
7
|
+
rwdshell is a web brower interface to operating system shell commands
|
8
|
+
|
9
|
+
|
10
|
+
download from http://rubyforge.org/frs/?group_id=444
|
11
|
+
|
12
|
+
run shell commands
|
13
|
+
|
14
|
+
|
15
|
+
The GUI interface used is RubyWebDialogs
|
16
|
+
|
17
|
+
|
18
|
+
Start the program by typing<br>
|
19
|
+
ruby init.rb
|
20
|
+
|
21
|
+
Then point your web browser to:
|
22
|
+
http://localhost:7705/
|
23
|
+
|
24
|
+
== using shell commands
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
Enter the shell command you want to run for in the browser form and press execute.
|
29
|
+
After a second the browser should fill with the results of the command.
|
30
|
+
try ls, df, cat "filename", and other shell commands
|
31
|
+
You should be able to run one command after another
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
rwdshell scriptrunner is a web brower interface to operating system shell commands
|
36
|
+
|
37
|
+
|
38
|
+
1. run shell commands
|
39
|
+
2. run Ruby commands in the browser
|
40
|
+
3. use a calculator
|
41
|
+
4. Open brower windows with html documents
|
42
|
+
|
43
|
+
The GUI interface used is RubyWebDialogs
|
44
|
+
|
45
|
+
|
46
|
+
Start the program by typing
|
47
|
+
ruby init.rb
|
48
|
+
|
49
|
+
Then point your web browser to:
|
50
|
+
http://localhost:7705/
|
51
|
+
|
52
|
+
|
53
|
+
== To use a shell command
|
54
|
+
|
55
|
+
|
56
|
+
Enter the shell command you want to run for in the browser form and press execute.
|
57
|
+
After a second the browser should fill with the results of the command.
|
58
|
+
try ls, df, cat "filename", and other shell commands
|
59
|
+
You should be able to run one command after another
|
60
|
+
|
61
|
+
|
62
|
+
There are two ways to add scripts to rwdshell directory.
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
== Creating a script
|
67
|
+
|
68
|
+
|
69
|
+
1. Use the "Create New Script" tab
|
70
|
+
<blockquote>
|
71
|
+
The first field is the most important. It is the filename that
|
72
|
+
will be created.
|
73
|
+
myshellscript
|
74
|
+
|
75
|
+
The following line for entry is a shell command.
|
76
|
+
|
77
|
+
The last line is for comment to describe the script
|
78
|
+
When you are finished press the CreateFile button
|
79
|
+
|
80
|
+
|
81
|
+
2. Manually add an entry for a script
|
82
|
+
|
83
|
+
You can use a text editor to create a record
|
84
|
+
put information on separate lines. You can have as many lines as you want
|
85
|
+
name the file with caps and no spaces and end with .sh
|
86
|
+
mynextscript.sh
|
87
|
+
|
88
|
+
Save your file to the scripts/ subdirectory
|
89
|
+
|
90
|
+
|
91
|
+
== Viewing a recorded script entry:
|
92
|
+
|
93
|
+
|
94
|
+
* Go to "List Scripts" tab
|
95
|
+
|
96
|
+
|
97
|
+
You can get a list of all scripts by clicking the listfiles button
|
98
|
+
|
99
|
+
To see the text of a script
|
100
|
+
Type in the name of the script you want.
|
101
|
+
|
102
|
+
type it without the sh ending
|
103
|
+
myscript
|
104
|
+
|
105
|
+
Then click the "ViewScript" button
|
106
|
+
|
107
|
+
If it finds the script it will open it. It displays the text the search box.
|
108
|
+
|
109
|
+
|
110
|
+
== Ruby Commands
|
111
|
+
|
112
|
+
|
113
|
+
At the Ruby tab here are some commands you might try
|
114
|
+
|
115
|
+
print "hello" + "\n"
|
116
|
+
|
117
|
+
bar=46; print "%s" % bar, "\n"
|
118
|
+
|
119
|
+
"abc".each_byte{|c| printf "<%c>", c}; print "\n"
|
120
|
+
|
121
|
+
"a\nb\nc\n".each_line{|l| print l}
|
122
|
+
|
123
|
+
for l in "a\nb\nc\n" ; print l ; end
|
124
|
+
|
125
|
+
print "%s" % "abcdef".length
|
126
|
+
wser window, or in another browser tab.
|
127
|
+
|
128
|
+
== Using over a Network
|
129
|
+
|
130
|
+
To serve the application over your local LAN,change the last line in the
|
131
|
+
init.rb file to something like:
|
132
|
+
RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
|
133
|
+
Then you should be able to login at: http://yourhostname:8080
|
134
|
+
|
135
|
+
You have to authorize yourself. The .rwuids example is a string with
|
136
|
+
the name of the authorization file, relative to the home directory
|
137
|
+
of the user that started the service. This file has to be in the form of:
|
138
|
+
|
139
|
+
user1 = password
|
140
|
+
user2 = pass phrase
|
141
|
+
|
142
|
+
Thus the file .rwduids might contain:
|
143
|
+
|
144
|
+
erik = secret
|
145
|
+
|
146
|
+
|
147
|
+
== Requirements:
|
148
|
+
RubyWebDialogs - I am using 0.0.11 2004-3-9<br>
|
149
|
+
This package you downloaded rwddemo should have a runtime version of
|
150
|
+
the needed rubywebdialog files<br>
|
151
|
+
|
152
|
+
Ruby I am using version 1.8.2
|
153
|
+
|
154
|
+
I have tested this under Linux-Debian kernel 2.6.9
|
155
|
+
|
156
|
+
== Operation:
|
157
|
+
The code files reside in the code directory and are combined before
|
158
|
+
the main Class is loaded
|
159
|
+
|
160
|
+
The rwd files in gui are combined before the gui is activated
|
161
|
+
|
162
|
+
== Installing:
|
163
|
+
|
164
|
+
unzip the file
|
165
|
+
then cd to the directory
|
166
|
+
unzip rwdashell-x.y.zip
|
167
|
+
|
168
|
+
|
169
|
+
== Trouble shooting:
|
170
|
+
|
171
|
+
If the program is not working, try looking at the ev subdirectory. That is where
|
172
|
+
the runtime of rubywebdialogs are.
|
173
|
+
|
174
|
+
for long term installation, I would suggest putting most files in a lib directory
|
175
|
+
like /usr/lib/rwdshell
|
176
|
+
then make a writable directory the local directory for command files to be written
|
177
|
+
like ~/rwdshell
|
178
|
+
|
179
|
+
|
180
|
+
Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
|
181
|
+
|
182
|
+
Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
|
183
|
+
|
184
|
+
RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
|
185
|
+
|
186
|
+
|
187
|
+
For more information see:
|
188
|
+
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
189
|
+
|
190
|
+
For more information about RubyWebDialogs see:<br>
|
191
|
+
http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
192
|
+
|
193
|
+
Thanks, Steven Gibson
|
194
|
+
|
195
|
+
== Changelog
|
196
|
+
version 0.95
|
197
|
+
added ruby script running
|
198
|
+
add back window for more control tabs
|
199
|
+
beginning of context sensitive help
|
200
|
+
wider text boxes for configuration information
|
201
|
+
updated for rwdtinker 1.51 - finds available port and remote control
|
202
|
+
updated for rwdtinker 1.52 - cam install applets from Gems
|
203
|
+
|
204
|
+
version 0.94
|
205
|
+
updated for rwdtinker 1.44 - refactor gui directory structure
|
206
|
+
|
207
|
+
version 0.93
|
208
|
+
updated for rwdtinker 1.42 - semi-live updating
|
209
|
+
|
210
|
+
version 0.92
|
211
|
+
added script editing
|
212
|
+
script deletion
|
213
|
+
script renaming
|
214
|
+
added English module to RubyEval
|
215
|
+
added Env module to RubyEval
|
216
|
+
combined scriptrunner HowTo into shell HowTo
|
217
|
+
Changed order of tabs so script are first
|
218
|
+
|
219
|
+
version 0.91
|
220
|
+
updated for rwdtinker version 1.3
|
221
|
+
|
222
|
+
Version 0.9
|
223
|
+
updated for rwdtinker version 1.23
|
224
|
+
|
225
|
+
Version 0.7
|
226
|
+
includes script playing and Ruby eval window.
|
227
|
+
|
228
|
+
Version 0.6
|
229
|
+
added script runner
|
230
|
+
list scripts
|
231
|
+
create scripts
|
232
|
+
Replaced Readme.txt with HowTo.html
|
233
|
+
|
234
|
+
Version 0.3
|
235
|
+
Changed directory structure to work with rwdtinker 0.9 or greater.
|
236
|
+
Improved the filename selection
|
237
|
+
Changed the layout on the list screen
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
data/rwdwshell-0.95.zip
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.4
|
3
|
+
specification_version: 1
|
4
|
+
name: rwdziprwdwshell
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: "0.95"
|
7
|
+
date: 2005-02-10
|
8
|
+
summary: rwdziprwdwshell is a Ruby and Shell script running application using rwdtinker and RubyWebDialogs. Requires rwdtinker >1.51
|
9
|
+
require_paths:
|
10
|
+
- "."
|
11
|
+
email: steven@superant.com
|
12
|
+
homepage: http://rubyforge.org/projects/rwdapplications/
|
13
|
+
rubyforge_project: rwdapplications
|
14
|
+
description: rwdziprwdwshell is a Ruby and Shell script running application using rwdtinker and RubyWebDialogs. Requires rwdtinker >1.51rwdcalc is calculator rwdtinker and RubyWebDialogs
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
-
|
22
|
+
- ">"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.0.0
|
25
|
+
version:
|
26
|
+
platform: ruby
|
27
|
+
authors: []
|
28
|
+
files:
|
29
|
+
- rwdwshell-0.95.zip
|
30
|
+
- HowTo_Shell.txt
|
31
|
+
- rwdshell.rb
|
32
|
+
test_files: []
|
33
|
+
rdoc_options:
|
34
|
+
- "--main"
|
35
|
+
- HowTo_Shell.txt
|
36
|
+
extra_rdoc_files:
|
37
|
+
- HowTo_Shell.txt
|
38
|
+
executables: []
|
39
|
+
extensions: []
|
40
|
+
requirements:
|
41
|
+
- rwdtinker > 1.51
|
42
|
+
dependencies: []
|