Closed
Bug 181416
Opened 23 years ago
Closed 23 years ago
"mozilla -remote ping()" isn't very programmatically useful
Categories
(Core Graveyard :: X-remote, enhancement)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: dmr, Assigned: blizzard)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021120
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021120
"/usr/local/mozilla/mozilla -remote "ping()" | grep -c No" will always return 0
even when it's output includes "No".
Reproducible: Always
Steps to Reproduce:
1.start mozilla; run"/usr/local/mozilla/mozilla -remote "ping()" | grep -c"
result will be 0
2.Kill mozilla; run"/usr/local/mozilla/mozilla -remote "ping()" | grep -c"
result will still be 0
3.
Expected Results:
I belive the "ping()" command should at least take an arguement (e.g. "num")
that will return a 0/1 boolean to STDOUT that will more programmatically accessable.
Comment 1•23 years ago
|
||
.
Assignee: asa → blizzard
Component: Browser-General → X-remote
QA Contact: asa → blizzard
Comment 2•23 years ago
|
||
1) The text is printed to stderr
2) As all test-like programs do, mozilla -remote returns a 0 on success (mozilla
found), nonzero otherwise. So you can do:
mozilla -remote "ping()" && echo "mozilla running";
mozilla -remote "ping()" || echo "mozilla not running";
if mozilla -remote "ping()"; then
# do something here
fi
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•