Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gridtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
gridtk
Commits
4d214f12
Commit
4d214f12
authored
Sep 26, 2012
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow program replacements for a number of SGE utilities
parent
b0505580
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
335 deletions
+38
-335
gridtk/script/__init__.py
gridtk/script/__init__.py
+0
-0
gridtk/script/grid.py
gridtk/script/grid.py
+30
-0
gridtk/scripts/jman.py
gridtk/scripts/jman.py
+0
-333
setup.py
setup.py
+8
-2
No files found.
gridtk/script
s
/__init__.py
→
gridtk/script/__init__.py
View file @
4d214f12
File moved
gridtk/script
s
/grid.py
→
gridtk/script/grid.py
View file @
4d214f12
...
...
@@ -11,11 +11,20 @@ import sys
def
main
():
if
len
(
sys
.
argv
)
<
2
:
print
__doc__
print
"usage: %s <command> [arg [arg ...]]"
%
\
os
.
path
.
basename
(
sys
.
argv
[
0
])
sys
.
exit
(
1
)
from
..setshell
import
replace
replace
(
'grid'
,
sys
.
argv
[
1
:])
prog
=
os
.
path
.
basename
(
sys
.
argv
[
0
])
if
prog
[
-
3
:].
lower
==
'.py'
:
prog
=
prog
[
-
3
:]
if
prog
==
'grid'
:
# act as before
if
len
(
sys
.
argv
)
<
2
:
print
__doc__
print
"usage: %s <command> [arg [arg ...]]"
%
\
os
.
path
.
basename
(
sys
.
argv
[
0
])
sys
.
exit
(
1
)
replace
(
'grid'
,
sys
.
argv
[
1
:])
else
:
# call that specific command on the grid environment
replace
(
'grid'
,
[
prog
]
+
sys
.
argv
[
1
:])
gridtk/scripts/jman.py
deleted
100644 → 0
View file @
b0505580
This diff is collapsed.
Click to expand it.
setup.py
View file @
4d214f12
...
...
@@ -15,8 +15,14 @@ setup(
entry_points
=
{
'console_scripts'
:
[
'jman = gridtk.scripts.jman:main'
,
'grid = gridtk.scripts.grid:main'
,
'jman = gridtk.script.jman:main'
,
'grid = gridtk.script.grid:main'
,
# program replacements
'qstat = gridtk.script.grid:main'
,
'qdel = gridtk.script.grid:main'
,
'qsub = gridtk.script.grid:main'
,
'man = gridtk.script.grid:main'
,
]
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment