Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
5cbdcf22
Commit
5cbdcf22
authored
24 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added PT/SC headers and CVS ID keyword.
Now prompts for required parameters when not specified.
parent
9147ee62
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/str_cmds.src
+60
-18
60 additions, 18 deletions
exec/str_cmds.src
with
60 additions
and
18 deletions
exec/str_cmds.src
+
60
−
18
View file @
5cbdcf22
#
STR_CMDS.SRC
#
str_cmds.src
# Global String Command Module for Synchronet
# $id$
# @format.tab-size 8, @format.use-tabs true
# This is NOT a command shell, DO NOT add to SCFG->Command Shells
# This module is loaded from command shells with the EXEC_BIN function
...
...
@@ -47,9 +51,14 @@ if_true
return
end_if
compare_
str
"LIST"
compare_
word
"LIST"
if_true
list_text_file
chksyspass
if_true
shift_str 4
call get_arg
printfile_str
end_if
return
end_if
...
...
@@ -96,19 +105,35 @@ if_true
compare_word "EXEC"
if_true
shift_str 4
compare_word " "
chksyspass
if_true
shift_str 1
shift_str 4
call get_arg
exec_int %s
end_if
exec_int %s
return
end_if
compare_word "
CALL
"
compare_word "
FOSSIL
"
if_true
shift_str 5
exec command /c rem >> %jQNET\%s.NOW
chksyspass
if_true
shift_str 6
call get_arg
exec %s
end_if
return
end_if
compare_word "CALL"
if_true
chksyspass
if_true
shift_str 4
call get_arg
exec command /c rem >> %jQNET\%s.NOW
end_if
return
end_if
compare_word "NODE"
...
...
@@ -117,16 +142,18 @@ if_true
return
end_if
compare_word "DOWN
"
compare_word "DOWN"
if_true
shift_str 5
shift_str 4
call get_arg
exec_int %!node down %s
return
end_if
compare_word "RERUN
"
compare_word "RERUN"
if_true
shift_str 6
shift_str 5
call get_arg
exec_int %!node rerun %s
return
end_if
...
...
@@ -185,7 +212,7 @@ if_true
return
end_if
compare_str "DIR"
compare_str "DIR"
# directory of current lib/dir
if_true
chksyspass
if_true
...
...
@@ -194,18 +221,19 @@ if_true
return
end_if
compare_word "LOAD
"
compare_word "LOAD"
if_true
shift_str 5
load_text %s
return
end_if
compare_word "DIR
"
compare_word "DIR"
# directory of user specified location
if_true
chksyspass
if_true
shift_str 4
shift_str 3
call get_arg
exec_int command /c dir %s /p
end_if
return
...
...
@@ -365,3 +393,17 @@ if_true
# None of the above (unrecognized)
return
### Generic routine to ask user for parameter if one wasn't specified ###
:get_arg
compare_word " "
if_true
shift_str 1
end_if
compare_str ""
if_true
print "Parameter(s): "
getstr
end_if
return
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment