Sponsored Content
Top Forums UNIX for Advanced & Expert Users Passing blank arguments to a script Post 302156700 by reborg on Tuesday 8th of January 2008 07:45:43 PM
Old 01-08-2008
See my previous. I probably posted it while you were typing.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Passing arguments to a script

I've written a script (bgrep) for a more advanced grep command (& attached a cut down version below). I'm trying allow all grep options to be used, or in any combination. The script works fine if I type say bgrep -i -files product it will return a non-case sensitive list of matches for... (3 Replies)
Discussion started by: Kevin Pryke
3 Replies

2. Shell Programming and Scripting

Passing arguments to a Perl script

I am playing around with Perl and wrote the script below that is executed from the command line, it will split data up in a file based on a value supplied. When executed you provide two arguments - the file that contains the data to be split and the character you want to split by. It works as... (4 Replies)
Discussion started by: jyoung
4 Replies

3. Shell Programming and Scripting

problem passing arguments to script

Hi, I am writing a script, which is invoked from other system using ssh. I have problems reading the arguments passing to the script. If the argument has a space in it (ex "rev 2.00"), the script considers "rev" as 1 argument and "2.00" as another. Instead i want "rev 2.00" to be considered... (5 Replies)
Discussion started by: cjjoy
5 Replies

4. Shell Programming and Scripting

passing arguments to sql script

Hi Gurus, i have one requirement in unix script, i have a file called abc.txt in that few lines are there with the empid, i need to read each line and pass to .sql script. ex: abc.txt 2345 2346 1243 1234 i need to pass these arguments to .sql script rom unix ex: select * from... (1 Reply)
Discussion started by: Devendar
1 Replies

5. Shell Programming and Scripting

passing arguments to external script

Hi! I have a python script that requires arguments and these arguments are file paths. This script works fine when executed like this: /my_python_script "file_path1" "file_path2" (i added quotes as some file names may have weird characters) the issue happens when i launch my python script... (14 Replies)
Discussion started by: gigagigosu
14 Replies

6. Shell Programming and Scripting

Passing arguments to a perl script

Hi I need to pass comma seperated arguments to a perl script? It is like: Exect.pl -d GUI1,GUI2,GUI3 and I need to store these argsGUI1,GUI2,GUI3 in an array. can anyone suggest how to do that: (1 Reply)
Discussion started by: rkrish
1 Replies

7. Shell Programming and Scripting

Passing multiple arguments to a shell script

Hi Gurus, Need some help with the shell scripting here. #!/bin/ksh ps -ef | grep -i sample.ksh | grep -v grep > abc.txt if then echo "sample.ksh is executing" else echo "sample.ksh is not executing" fi (1 Reply)
Discussion started by: jayadanabalan
1 Replies

8. Shell Programming and Scripting

Passing arguments to a bash script

Hi, I wanted to pass an argument to a bash script. So that the argument is used inside the awk command inside the bash script. I know the noraml way of passing argument to a bash script as below : sh myScript.sh abc Inside the bash script i can use like this myArg1=$1 wc $myArg But... (8 Replies)
Discussion started by: shree11
8 Replies

9. Shell Programming and Scripting

Passing arguments while running the script

Hi, I have a requirement for creating a MQ (queue) where the inputs has to be passed as arguments. Running the script as below ./hi.sh "Servername" "QueueManagername" "QueuecreationCommand" cat hi.sh echo "Welcome to $1" runmqsc $2 < $3 But the queue creation command is... (9 Replies)
Discussion started by: Anusha M
9 Replies

10. Shell Programming and Scripting

Passing arguments to php script

i want to be able to pass arguments to a php script if it is being piped: cat myphpscript.php | php - $1 $2 $3 blah blah This usually works for other script languages...i.e. ruby: cat myrubyscript.rb | ruby - $1 $2 $3 blah blah so my question is, how can i pass arguments to my php... (1 Reply)
Discussion started by: SkySmart
1 Replies
X11START(1)						      General Commands Manual						       X11START(1)

NAME
x11start - start the X11 window system SYNOPSIS
x11start [options] DESCRIPTION
NOTE: Beginning with the next release of HP-UX, x11start and its components (xinit, sys.x11start, and sys.Xdefaults) will not be supported. vuelogin (an enhanced version of xdm) will perform all start-up tasks, regardless of whether or not HP-VUE is in use. See the HP Visual Environment User's Guide and the vuelogin man page for information on vuelogin. x11start is a shell script that provides a standarized method for starting up the X Window System server and selected X clients when the Visual User Environment (HP-VUE) is not used. Specifically, it performs the following start-up tasks: o PATH environment variable set-up appropriate for the X environment o X server start-up o selected client(s) start-up from a specific client file o general user resource loading from a specific resource file Components x11start encompasses the following components: o the /usr/contrib/bin/X11/x11start script o the /usr/contrib/bin/X11/xinit program o the default client script, /usr/contrib/lib/X11/sys.x11start o the default resouce file, /usr/contrib/lib/X11/sys.Xdefaults The x11start script o creates a command to load resources from the appropriate resource file using xrdb (see xrdb(1)) (This command is not executed immedi- ately but rather is assigned to the (exported) environment variable, doxrdb which is normally executed via the client script after the server has been started up.) o inserts /usr/bin/X11 ahead of /usr/bin in the PATH environment variable and appends /usr/vue/bin and /usr/contrib/bin/X11 to the end o execs xinit as follows (see xinit(1)): xinit clientscript options where clientscript is $HOME/.x11start or /usr/contrib/lib/X11/sys.x11start options are the xinit options exactly as specified on the x11start command line (see Options below). The xinit program o starts the server with the server arguments specified in options o runs the client script, passing it the client arguments specified in options o waits for either the server or client script to terminate and then terminates whatever remains running The default client script, /usr/contrib/lib/X11/sys.x11start o executes the environment variable, $doxrdb which was setup previously by x11start to load the appropriate resource file to the server o runs both mwm and hpterm with all client arguments specified in options o sleeps indefinitely so that the X Window System will not be shut down by xinit when all client script processes have terminated. The default resource file, /usr/contrib/lib/X11/sys.Xdefaults o sets the default Foreground, Background and BorderColor resources o contains sample resources for a number of common clients. Customized client and resource files can be created by copying the default files to $HOME/.x11start and $HOME/.Xdefaults, respectively, and then customizing them. Custom- ized files that exist (with the appropriate permissions) will be used by the x11start components in place of the default files. Options x11start options are the same as xinit options except that a client script cannot be specified. Arguments preceeding a "--" (double dash), or all arguments if "--" is not specified, are passed on to the client script and can be accessed as positional parameters within that script. Arguments following a "--" that begins with a slash (/) or a period (.) identify the server. If a server is not explicity specified, xinit determines the server from $DISPLAY if defined; otherwise from $XSERVERRC. If neither of these are defined, $HOME/.xserverrc is used if it exists and is executable; otherwise X :0 is used. Arguments following a "--" that don't begin with a slash or period are passed on to the appropriate server. See xinit(1) for more details. EXAMPLES
The following examples illustrate how x11start can be used to control the server and/or interact with the client script. x11start This starts the default xinit server and executes the client script (either /usr/contrib/lib/X11/sys.x11start or $HOME/.x11start) without passing arguments to either. x11start -bg black -fn 24x36 This starts the default xinit server and executes the client script, passing it all of the arguments. If the default client script is used, -bg black -fn 24x36 is be passed to both mwm and hpterm since both of their default command lines contain "$@". If the default client script is used, the actual xinit command executed is: xinit /usr/contrib/lib/X11/sys.x11start -bg black -fn 24x36 x11start -fg white -- :1 This starts the default server on display 1 and executes the client script with the arguments, -fg white. If the customized client script is used, the xinit command line is: xinit $HOME/.x11start -fg white -- :1 x11start -- Xhp -a2 -t 5 This starts the server, Xhp with the arguents, -a2 -t 5 and then executes the client script without any arguments. ENVIRONMENT VARIABLES
DISPLAY PATH XSERVERRC doxrgb FILES
/usr/contrib/lib/X11/sys.Xdefaults /usr/contrib/lib/X11/sys.x11start $HOME/.Xdefaults $HOME/.x11start $HOME/.xserverrc ORIGIN
HP SEE ALSO
X(1), xinit(1), hpterm(1), mwm(1), xrdb(1) X Version 11 Release 5 X11START(1)
All times are GMT -4. The time now is 09:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy