Is it possible to call a C function from within a shell script. This C function is part of an API. What do I need to make it work from my shell script. Anybody please help. (4 Replies)
i have a function defined in one ksh (ksh 1)
i want to use that function in another ksh (ksh 2)
i am using
. $<directoryname>/<ksh name>
i am calling the function defined in ksh 1 in ksh 2
i want the returnstatus from the above operation
but it is not executing the function
what i... (1 Reply)
Hi,
I have searched the forum for the query, But i didnt find an exact answer.
I have a script(1.sh) and a c program(sample.c)
sample.c contains many function definitions.( run(), find(), add() etc).
I want to call functions in sample.c from 1.sh and use the return value in 1.sh... (3 Replies)
Hi,
I have a query ..
i have 2 scripts say 1.sh and 2.sh
1.sh contains many functions written using shell scripts.
2.sh is a script which needs to call the functions definded in 1.sh
function calls are with arguments.
Can some one tell me how to call the functions from 2.sh?
Thanks in... (6 Replies)
Some Code
After Some code part is executed the control doesnt go to rvin_doxx_scrt.. and the script exits
rvin_doxx_scrt()
{
Some Code
}
if (som code)
... (4 Replies)
Hi,
I have a K shell
a.ksh
function abc {
// Some logic
}
In
b.ksh
i have included the a.ksh
./a.ksh
I want to call the abc function from this b.ksh script.
Thanks
Vijay (2 Replies)
hi guys, how r u???
please I need you, help me please.
I have a shell, in this shell i have this function and another code lines, this function is getting date one day back. the function is in the same shell (FILE 1)
Now I need put this function in another file (FILE 2) and calling... (4 Replies)
This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord
but only one record is getting wrote in DB.... Please advise ASAP...:confused:
function InsertFtg
{
FTGSTR=""
echo "Saurabh is GREAT $#"
let... (2 Replies)
I need to
1.Open a csv
2.Process the csv i.e. Modify 2 column in the csv.
To modify the column the value needs to be passed to a pl/sql function and the return value should be updated
For eg:
If column 2 E,then E will be passed in database function
which will return Employee.
3. Write a... (5 Replies)
Hello All,
I am trying to call a function from the calling main program from a dlopened library function, below is the entire code, when I execute it it crashes with sigill. Can you guys help me out I guess I am missing out on the linker flag or something here. besides I am new to AIX and... (1 Reply)
Discussion started by: syedtoah
1 Replies
LEARN ABOUT LINUX
pygettext
PYGETTEXT(1) General Commands Manual PYGETTEXT(1)NAME
pygettext - Python equivalent of xgettext(1)SYNOPSIS
pygettext [OPTIONS] INPUTFILE ...
DESCRIPTION
pygettext is deprecated. The current version of xgettext supports many languages, including Python.
pygettext uses Python's standard tokenize module to scan Python source code, generating .pot files identical to what GNU xgettext generates
for C and C++ code. From there, the standard GNU tools can be used.
pygettext searches only for _() by default, even though GNU xgettext recognizes the following keywords: gettext, dgettext, dcgettext, and
gettext_noop. See the -k/--keyword flag below for how to augment this.
OPTIONS -a, --extract-all
Extract all strings.
-d, --default-domain=NAME
Rename the default output file from messages.pot to name.pot.
-E, --escape
Replace non-ASCII characters with octal escape sequences.
-D, --docstrings
Extract module, class, method, and function docstrings. These do not need to be wrapped in _() markers, and in fact cannot be for
Python to consider them docstrings. (See also the -X option).
-h, --help
Print this help message and exit.
-k, --keyword=WORD
Keywords to look for in addition to the default set, which are: _
You can have multiple -k flags on the command line.
-K, --no-default-keywords
Disable the default set of keywords (see above). Any keywords explicitly added with the -k/--keyword option are still recognized.
--no-location
Do not write filename/lineno location comments.
-n, --add-location
Write filename/lineno location comments indicating where each extracted string is found in the source. These lines appear before
each msgid. The style of comments is controlled by the -S/--style option. This is the default.
-o, --output=FILENAME
Rename the default output file from messages.pot to FILENAME. If FILENAME is `-' then the output is sent to standard out.
-p, --output-dir=DIR
Output files will be placed in directory DIR.
-S, --style=STYLENAME
Specify which style to use for location comments. Two styles are supported:
o Solaris # File: filename, line: line-number
o GNU #: filename:line
The style name is case insensitive. GNU style is the default.
-v, --verbose
Print the names of the files being processed.
-V, --version
Print the version of pygettext and exit.
-w, --width=COLUMNS
Set width of output to columns.
-x, --exclude-file=FILENAME
Specify a file that contains a list of strings that are not be extracted from the input files. Each string to be excluded must
appear on a line by itself in the file.
-X, --no-docstrings=FILENAME
Specify a file that contains a list of files (one per line) that should not have their docstrings extracted. This is only useful in
conjunction with the -D option above.
If `INPUTFILE' is -, standard input is read.
BUGS
pygettext attempts to be option and feature compatible with GNU xgettext where ever possible. However some options are still missing or
are not fully implemented. Also, xgettext's use of command line switches with option arguments is broken, and in these cases, pygettext
just defines additional switches.
AUTHOR
pygettext is written by Barry Warsaw <barry@zope.com>.
Joonas Paalasmaa <joonas.paalasmaa@iki.fi> put this manual page together based on "pygettext --help".
pygettext 1.4 PYGETTEXT(1)