Sponsored Content
Full Discussion: run a perl with option
Top Forums Shell Programming and Scripting run a perl with option Post 302180553 by amir07 on Monday 31st of March 2008 12:33:38 PM
Old 03-31-2008
Can it be without installing any module? Thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl: Run perl script in the current process

I have a question regarding running perl in the current process. I shall demonstrate with an example. Look at this. sh-2.05b$ pwd /tmp sh-2.05b$ cat test.sh #! /bin/sh cd /etc sh-2.05b$ ./test.sh sh-2.05b$ pwd /tmp sh-2.05b$ . ./test.sh sh-2.05b$ pwd /etc sh-2.05b$ So... (10 Replies)
Discussion started by: vino
10 Replies

2. Shell Programming and Scripting

option followed by : taking next option if argument missing with getopts

Hi all, I am parsing command line options using getopts. The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument. Below is the script: while getopts :hd:t:s:l:p:f: opt do case "$opt" in -h|-\?)... (2 Replies)
Discussion started by: gurukottur
2 Replies

3. Shell Programming and Scripting

recently introduced to the newer option for find...does an older option exist?

To find all the files in your home directory that have been edited in some way since the last tar file, use this command: find . -newer backup.tar.gz Is anyone familiar with an older solution? looking to identify files older then 15mins across several directories. thanks, manny (2 Replies)
Discussion started by: mr_manny
2 Replies

4. Shell Programming and Scripting

Better way to run this perl command

i'm working with files that are huge in size. over 3GB. and i need to do a lot of pattern matching. I need a way to grep for what i want, using a tool that is available across most unix systems. i initially was gungho about grep, but not all capablities of grep are available on all OSes. so... (10 Replies)
Discussion started by: SkySmart
10 Replies

5. Shell Programming and Scripting

sh file: READ (menu) but now run with option

I have a script which uses READ to detect choice of menu option...now I want to change the script without doing whole rewrite such that when user runs ./script.sh 5 it would execute menu option 5 rather than user running ./script.sh waiting for it to load and then pressing "5 enter" Is it... (1 Reply)
Discussion started by: holyearth
1 Replies

6. Shell Programming and Scripting

[Perl] Command option with optional value.

Hi, I would like to parse command line arguments. The problem I am facing is that I cannot get it right when an option has a optional value. Example: # ./ej.pl --remove # ./ej.pl --remove all And the script may allow only one option. So this is wrong: # ./ej.pl --dummy --remove I... (3 Replies)
Discussion started by: ejdv
3 Replies

7. Shell Programming and Scripting

Perl debuggin option

I am getting out of memory issue in perl. I need to debug which function taking more memory constraints. what the commands to find out the memory consuming in the perl program. (1 Reply)
Discussion started by: ramkumar15
1 Replies

8. Shell Programming and Scripting

Converting shell to Perl I run into shell built in function trap and need alternative in Perl

I am working on converting shell to Perl script. In shell we have built in function trap Do you know alternative in Perl or actually we don't need it? Thanks for contribution (3 Replies)
Discussion started by: digioleg54
3 Replies

9. Shell Programming and Scripting

Perl command line option '-n','-p' and multiple files: can it know a file name of a printed line?

I am looking for help in processing of those options: '-n' or '-p' I understand what they do and how to use them. But, I would like to use them with more than one file (and without any shell-loop; loading the 'perl' once.) I did try it and -n works on 2 files. Question is: - is it possible to... (6 Replies)
Discussion started by: alex_5161
6 Replies

10. Shell Programming and Scripting

Shell script run in a case statement call to run a php file, also Perl

Linux System having all Perl, Python, PHP (and Ruby) installed From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file eg eg a Shell script run in a case statement call to run a php file, also Perl or/and Python file??? Like #!/usr/bin/bash .... .... case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
ggz-config(6)							  GGZ Gaming Zone						     ggz-config(6)

NAME
ggz-config - GGZ Gaming Zone configuration manager SYNOPSIS
Query Mode: ggz-config [--configdir] [--gamedir] [--datadir] [--protocol] [--version] Install Mode: ggz-config --install --modfile=FILENAME [--destdir] [--force] Uninstall Mode: ggz-config --remove --modfile=FILENAME Repair Mode: ggz-config --check DESCRIPTION
The program ggz-config is a central tool and part of the client libraries package of the GGZ Gaming Zone. It can be used for several pur- poses. Primarily it is used to maintain the ggz.modules configuration file by installing and removing game module information. This is done with the --install and --remove modes of operation. Additionally, the program can query the installation settings of the GGZ client libraries to assist in configuring the build process of a client or game module. OPTIONS
Query Mode Options -c, --configdir Output location of the GGZ client libraries configuration directory and exit. This value will usually be @ggzconfdir@ and is where the file ggz.modules is located. -g, --gamedir Output location of the executable game modules and exit. Game modules in this directory are all game clients which are not installed into a standard PATH directory, mostly because they only run when invoked by a GGZ core client. As a special module, the game client wrapper ggzwrap is installed into this place. The gamedir is usually @ggzexecmoddir@. -d, --datadir Output location of game module data directory and exit. This is where games look for their graphics and level data. This will likely resolve to @ggzdatadir@. -p, --protocol Query GGZ_CS_PROTO_VERSION - version of core protocol between the GGZ server and any GGZ core clients. -h, --help Output help information and exit. -u, --usage Print some ggz-config usage scenarios for quick reference. -v, --version Output version information and exit. Install Mode Options --install Specifies that we are installing a game module description. --modfile=FILENAME Specifies the source module description file. FILENAME will often be named module.dsc, but this is merely a convention. --force Overwrite an existing module entry of the same name, author and version rather than returning an error. -D, --destdir Specifies that the $DESTDIR environment variable contains a directory to prepend to the path for the GGZ module configuration file (ggz.modules). The only known purpose for this is for creating binary packages of GGZ games. Uninstall Mode Options --remove Specifies that we are removing a game module description. --modfile=FILENAME Specifies the source module description file. FILES
@ggzconfdir@/ggz.modules Game module registry for all GGZ Gaming Zone core clients. ENVIRONMENT VARIABLES
DESTDIR Used during install process, most commonly by the build sequence of binary packages such as rpm or dpkg. BUGS
The program is currently unable to detect many problems that could arise with an invalid ggz.modules file. Probably others, too numerous to mention. SEE ALSO
ggz_h(3), ggzcore_h(3), ggzmod_h(3), libggz(3), libggzcore(3), libggzmod(3), attributes(5), ggz.modules(5), gnome-interfaces(5), ggz(6), ggz-config(6), ggz(7) GGZ Gaming Zone: http://www.ggzgamingzone.org/ AUTHORS
The GGZ Development Team <ggz-dev@mail.ggzgamingzone.org> Last edited by Michal Pryc, Sun Microsystems Inc., 2008. The GGZ Development Team 0.0.14 ggz-config(6)
All times are GMT -4. The time now is 06:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy