Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
epics-modules
require
Commits
cd40e985
Commit
cd40e985
authored
20 years ago
by
maden
Browse files
Options
Downloads
Patches
Plain Diff
Add more debug output
parent
2f03ef0a
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
App/scripts/bootinfo
+10
-4
10 additions, 4 deletions
App/scripts/bootinfo
with
10 additions
and
4 deletions
App/scripts/bootinfo
+
10
−
4
View file @
cd40e985
#! /usr/bin/env python
#
# $Source: /cvs/G/DRV/misc/App/scripts/bootinfo,v $
# $Revision: 1.
8
$ $Date: 2004/07/
27 07:26:30
$
# $Revision: 1.
9
$ $Date: 2004/07/
30 13:28:56
$
#
'''
Obtain boot information about IOCs from the ssrm_public Oracle
...
...
@@ -44,7 +44,7 @@ def showVersion ():
# ===========
'''
$Source: /cvs/G/DRV/misc/App/scripts/bootinfo,v $
$Revision: 1.
8
$ $Date: 2004/07/
27 07:26:30
$
$Revision: 1.
9
$ $Date: 2004/07/
30 13:28:56
$
Installed Location: $SLSBASE/sls/bin
'''
print
showVersion
.
__doc__
...
...
@@ -57,7 +57,7 @@ if __name__ == "__main__":
sys
.
stderr
=
sys
.
stdout
caseConvert
=
1
debug
=
0
timeout
=
1
0
timeout
=
1
5
try
:
#
# Analyse the options
...
...
@@ -72,6 +72,7 @@ if __name__ == "__main__":
if
opt
[
0
]
==
"
--nocc
"
:
caseConvert
=
0
if
opt
[
0
]
==
"
--debug
"
:
debug
=
1
#endfor
if
debug
:
timeout
=
30
except
"
Help
"
:
showUsage
()
sys
.
exit
(
0
)
...
...
@@ -122,9 +123,10 @@ if __name__ == "__main__":
"
IPADDR,
"
+
\
"
VXWORKS AS ARCH
"
+
\
"
FROM SSRM.IOC_LASTBOOTED
"
if
debug
:
print
"
query =
\"
%s
\"
"
%
query
url
=
"
http://pc4860.psi.ch/testplan/IOC_INFOS/ioc_select.php?SQLQUER=
"
+
\
urllib
.
quote_plus
(
query
)
if
debug
:
print
"
url =
\"
%s
\"
"
%
url
try
:
ufo
=
urllib
.
urlopen
(
url
)
# Query the database
lines
=
ufo
.
readlines
()
# Get the result
...
...
@@ -133,6 +135,10 @@ if __name__ == "__main__":
print
"
\a
Error getting data from database!
"
raise
#endtry
if
debug
:
print
"
Response:
"
for
line
in
lines
:
print
"
\"
%s
\"
"
%
string
.
rstrip
(
line
)
#endif
# Loop over the list of patterns.
hdrNotDone
=
1
for
item
in
items
:
...
...
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