Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
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
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
13bd077b
Commit
13bd077b
authored
20 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
add -pid command line option to print the process id on stdout
parent
dbdf18b1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Common/CommandLine.cpp
+9
-2
9 additions, 2 deletions
Common/CommandLine.cpp
doc/gmsh.1
+4
-1
4 additions, 1 deletion
doc/gmsh.1
doc/texinfo/command_line.texi
+2
-0
2 additions, 0 deletions
doc/texinfo/command_line.texi
with
15 additions
and
3 deletions
Common/CommandLine.cpp
+
9
−
2
View file @
13bd077b
// $Id: CommandLine.cpp,v 1.4
6
2004-0
7-01 22:23:10
geuzaine Exp $
// $Id: CommandLine.cpp,v 1.4
7
2004-0
9-17 17:35:53
geuzaine Exp $
//
//
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
//
//
// Please report all bugs and problems to <gmsh@geuz.org>.
// Please report all bugs and problems to <gmsh@geuz.org>.
#include
<sys/types.h>
#include
<unistd.h>
#include
<unistd.h>
#include
"Gmsh.h"
#include
"Gmsh.h"
#include
"GmshUI.h"
#include
"GmshUI.h"
...
@@ -101,6 +102,7 @@ void Print_Usage(char *name){
...
@@ -101,6 +102,7 @@ void Print_Usage(char *name){
#if defined(HAVE_FLTK)
#if defined(HAVE_FLTK)
Msg
(
DIRECT
,
" -a, -g, -m, -s, -p start in automatic, geometry, mesh, solver or post-processing mode"
);
Msg
(
DIRECT
,
" -a, -g, -m, -s, -p start in automatic, geometry, mesh, solver or post-processing mode"
);
#endif
#endif
Msg
(
DIRECT
,
" -pid print pid on stdout"
);
Msg
(
DIRECT
,
" -v int set verbosity level"
);
Msg
(
DIRECT
,
" -v int set verbosity level"
);
Msg
(
DIRECT
,
" -string
\"
string
\"
parse string before project file"
);
Msg
(
DIRECT
,
" -string
\"
string
\"
parse string before project file"
);
Msg
(
DIRECT
,
" -option file parse option file before GUI creation"
);
Msg
(
DIRECT
,
" -option file parse option file before GUI creation"
);
...
@@ -165,7 +167,12 @@ void Get_Options(int argc, char *argv[], int *nbfiles)
...
@@ -165,7 +167,12 @@ void Get_Options(int argc, char *argv[], int *nbfiles)
if
(
argv
[
i
][
0
]
==
'-'
)
{
if
(
argv
[
i
][
0
]
==
'-'
)
{
if
(
!
strcmp
(
argv
[
i
]
+
1
,
"string"
))
{
if
(
!
strcmp
(
argv
[
i
]
+
1
,
"pid"
))
{
fprintf
(
stdout
,
"%d
\n
"
,
getpid
());
fflush
(
stdout
);
i
++
;
}
else
if
(
!
strcmp
(
argv
[
i
]
+
1
,
"string"
))
{
i
++
;
i
++
;
if
(
argv
[
i
]
!=
NULL
)
if
(
argv
[
i
]
!=
NULL
)
TheOptString
=
argv
[
i
++
];
TheOptString
=
argv
[
i
++
];
...
...
This diff is collapsed.
Click to expand it.
doc/gmsh.1
+
4
−
1
View file @
13bd077b
.\" $Id: gmsh.1,v 1.5
7
2004-0
7-01 22:23:11
geuzaine Exp $
.\" $Id: gmsh.1,v 1.5
8
2004-0
9-17 17:35:53
geuzaine Exp $
.TH Gmsh 1 "1 July 2004" "Gmsh 1.54" "Gmsh Manual Pages"
.TH Gmsh 1 "1 July 2004" "Gmsh 1.54" "Gmsh Manual Pages"
.UC 4
.UC 4
.\" ********************************************************************
.\" ********************************************************************
...
@@ -125,6 +125,9 @@ specify display.
...
@@ -125,6 +125,9 @@ specify display.
.B \-a, \-g, \-m, \-s, \-p
.B \-a, \-g, \-m, \-s, \-p
start in automatic, geometry, mesh, solver or post-processing mode.
start in automatic, geometry, mesh, solver or post-processing mode.
.TP 4
.TP 4
.B \-pid
print pid on stdout.
.TP 4
.B \-v int
.B \-v int
set verbosity level.
set verbosity level.
.TP 4
.TP 4
...
...
This diff is collapsed.
Click to expand it.
doc/texinfo/command_line.texi
+
2
−
0
View file @
13bd077b
...
@@ -85,6 +85,8 @@ specify display
...
@@ -85,6 +85,8 @@ specify display
@ftable @code
@ftable @code
@item -a, -g, -m, -s, -p
@item -a, -g, -m, -s, -p
start in automatic, geometry, mesh, solver or post-processing mode
start in automatic, geometry, mesh, solver or post-processing mode
@item -pid
print pid on stdout
@item -v int
@item -v int
set verbosity level
set verbosity level
@item -string "string"
@item -string "string"
...
...
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