05-09-2016
Thanks Rudic.
If I create a function I need to return several values. I think that would not look nice. Probably I would do that only as calling the function with the array also would be just like what I have written already.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
All,
I have a sh script of the following tune:
function a () { #functionality.. }
function b () { #functionnlity.. }
function check () { # this function checks for env and if all fine call build }
function usage () { #sh usage details }
function build () { #calls either a or b or... (5 Replies)
Discussion started by: vino
5 Replies
2. Shell Programming and Scripting
Hi,
I have a function that hold 3 arrayies.
I need to pass them to another function as an input, for further use
Could you please explain how to do that.
Thanks (5 Replies)
Discussion started by: yoavbe
5 Replies
3. Shell Programming and Scripting
hi all
i am etl guy
i have shell script that i use to do processing on file.
the problem is that i want it to use on multiple files at same time
is there any way of passing the file name since my all my filename start with samename like abc*
p,ease let me know (4 Replies)
Discussion started by: er_zeeshan05
4 Replies
4. Shell Programming and Scripting
Hi I have 2 files a.c and a.bak where I changed long to int using awk script.
I want to get the list of functions whose parameters got modified
for eg: fun ( long a, long b ) might be changed to fun ( int a, int b ) (1 Reply)
Discussion started by: Sivaswami
1 Replies
5. Shell Programming and Scripting
hi there
I have the following script in which i have created a PrintHash() function.
I want to pass to this function the reference to a hash (in the final code i will be passing different hashes to this print function hence the need for a function). I am getting an error
Type of arg 1 to... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
6. Shell Programming and Scripting
Hi,
Please help me with the below situation where I have to handle the parameters passed to a function in a unique way.
Below is the code, which I am trying to execute. I basically want to pass the parameter to a function, where I am trying to get user input into array(s). I want to name... (7 Replies)
Discussion started by: bharath.gct
7 Replies
7. Shell Programming and Scripting
Hi All,
My target is to find the list of orphan processes running and i issue the below command with some exception ids.
ps -ef | egrep -v "root|system|admin" | awk '{if ($3 == 1) print $1",\t"$2",\t"$3}'
but this will exclude the process having the word 'root' and executing under different... (1 Reply)
Discussion started by: Arunprasad
1 Replies
8. Shell Programming and Scripting
I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line
if
then... (8 Replies)
Discussion started by: saku
8 Replies
9. Shell Programming and Scripting
Hi ,
I have a script which is using a text file as I/P.
I want a code where it reads n lines from this file and pass the parameters to a function and now this script should run in such a way where a function can be called in parallel with different parameters. Please find below my script, it... (1 Reply)
Discussion started by: Ravindra Swan
1 Replies
10. Shell Programming and Scripting
I'm reading a text file using a while loop but when I call a function from within this loop it exits that same iteration … even though there are many more lines in the file to be read.
I thought it was something to do with the IFS setting but it appears that a function call (when run... (3 Replies)
Discussion started by: user052009
3 Replies
LEARN ABOUT DEBIAN
pycentral
PYCENTRAL() PYCENTRAL()
NAME
pycentral - register and build utility for Python packages
SYNOPSIS
pycentral [-h] [-v] <cmd> [<cmd options>] [<args>]
DESCRIPTION
pycentral
provides support for installing python modules independent
of the current installed Python version and handling
byte-compilation and -removal tasks in installation scripts.
OPTIONS
-v, --version
Limit the output to the version numbers of the python versions.
-h, --help
Print a help text.
pycentral has the following sub commands. For fine grained help, call: pycentral <cmd>.
bccompile
Byte compile .py files in a package.
bcremove
Remove the byte compiled .py files.
list List all managed files.
pkginstall
Make a package available for all supported runtimes.
pkgprepare
Prepare a package for all supported runtimes.
pkgremove
Remove a package installed for all supported runtimes.
pkglist
List pycentral-managed files of a package for all supported runtimes.
rtinstall
Make installed packages available for this runtime.
rtremove
Remove packages installed for this runtime.
updatedefault
Update the default python version.
debhelper
move files to pycentral locaation, variable substitutions (called by dh_pycentral).
pycentraldir <package>
Show the installation directory used by pycentral for <package>.
showdefault
Show default python version number. Deprecated, use pyversions(1)
showsupported
Show the supported python versions. Deprecated, use pyversions(1)
showversions
Show version numbers of supported python versions. Deprecated, use pyversions(1) dh_pycentral, should not be called directly).
version
Show the pycentral version.
FILES
/etc/python/debian_config is searched for the attribute overwrite-local. If set to 1, or True, existing files in
/usr/lib/pythonX.Y/*-packages are overwritten with symbolic links to the pycentral install area. The default is to abort the installation
of a package, when files already exist. This behaviour may be useful, when python libraries were manually installed into this directory.
The attribute byte-compile can be set to a comma separated list of the values standard and optimze to indicate how files should be byte-
compiled.
SEE ALSO
pyversions(1), Python policy.
AUTHOR
Matthias Klose
PYCENTRAL()