I have a script that is causing a problem that led me to think if there is a limit to the number of arguments for 'set' command in csh shell script.
Here is my script:
I get past #1, but get this error in #2 above.
Greatly appreciate if you could suggest any solutions.
What is the maximum no. of arguments that could be passed to a shell script ? Is there any restriction ?
I've a requirement where I need to pass a list of names to a unix script and I guess the number of such names is not a fixed one. It can run into hundreds.
Is this feasible ? (4 Replies)
Hello Folks,
I have been asked to write a test script which can be run by students. the script should have a time limit.
I have almost completed it except the bit of timing!
I've seen something like this:
on_timeout()
{
echo "$USER $score " >> theresult.txt
echo "Time out!... (2 Replies)
Can someone tell me why I'm getting error when I try to run this?
#!/bin/csh -f
source ~/.cshrc
#
set SQLPLUS = ${ORACLE_HOME}/bin/sqlplus
#
set count=`$SQLPLUS -s ${DB_LOGIN} << END
select count(1) from put_groups where group_name='PC' and description='EOD_EVENT' and serial_number=1;... (7 Replies)
I have this one::) doing jstack on JVM proccess.
#!/bin/ksh
# ----------------------------------------------------
# capture_jstack.sh <INTERVAL> <COUNT>
# run jstack and capture output to a log file
#-----------------------------------------------------
#
# scripts and logs are stored... (3 Replies)
I will be passing an argument to a csh script
The script can be either of two forms
For example, either
script.csh zloc=5/10
or
script.csh zloc=5/10/20
So there can be either two values or three values. How can I distinguish which one the user has inputted?
I have made... (1 Reply)
If ($argv == “-debug”) then
Echo “in loop”
Endif
But this is not working. If I modify this code and remove “-“, then it works.
Similarly I am getting problem using grep command also
Grep “-debug” Filename
Can someone please help me on how to resolve these... (1 Reply)
HI ,
I am new to csh. I need to pass some command line arguments like
./abc.sh -os Linux -path abc -tl aa -PILX 1
I have defined the loop as shown below. But its taking "-os" switches as arguments. Its treating them as arguments.
How to resolve it?
while ( $#argv != 0 )
switch ($argv)
... (7 Replies)
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Dear Friends,
Please help me on this
my script name is send.csh
In this i have written the statement like this
set args = ( city state country price )
I want to pass this array to another c shell called receiver.csh. and i want to use it in this c shell
or
how to pass to... (2 Replies)
Discussion started by: SA_Palani
2 Replies
LEARN ABOUT SUSE
pango::context
Pango::Context(3) User Contributed Perl Documentation Pango::Context(3)NAME
Pango::Context
HIERARCHY
Glib::Object
+----Pango::Context
METHODS
direction = $context->get_base_dir
$context->set_base_dir ($direction)
o $direction (Pango::Direction)
gravity = $context->get_base_gravity
Since: pango 1.16
$context->set_base_gravity ($gravity)
o $gravity (Pango::Gravity)
Since: pango 1.16
fontdescription = $context->get_font_description
$context->set_font_description ($desc)
o $desc (Pango::FontDescription)
fontmap = $context->get_font_map
Since: pango 1.6
gravity = $context->get_gravity
Since: pango 1.16
gravityhint = $context->get_gravity_hint
Since: pango 1.16
$context->set_gravity_hint ($hint)
o $hint (Pango::GravityHint)
Since: pango 1.16
language = $context->get_language
$context->set_language ($language)
o $language (Pango::Language)
@families = $context->list_families
font = $context->load_font ($desc)
o $desc (Pango::FontDescription or undef)
fontset = $context->load_fontset ($desc, $language)
o $desc (Pango::FontDescription)
o $language (Pango::Language or undef)
matrix or undef = $context->get_matrix
Since: pango 1.6
$context->set_matrix ($matrix)
o $matrix (Pango::Matrix or undef)
Since: pango 1.6
fontmetrics = $context->get_metrics ($desc, $language)
o $desc (Pango::FontDescription)
o $language (Pango::Language or undef)
ENUMS AND FLAGS
enum Pango::Direction
o 'ltr' / 'PANGO_DIRECTION_LTR'
o 'rtl' / 'PANGO_DIRECTION_RTL'
o 'ttb-ltr' / 'PANGO_DIRECTION_TTB_LTR'
o 'ttb-rtl' / 'PANGO_DIRECTION_TTB_RTL'
o 'weak-ltr' / 'PANGO_DIRECTION_WEAK_LTR'
o 'weak-rtl' / 'PANGO_DIRECTION_WEAK_RTL'
o 'neutral' / 'PANGO_DIRECTION_NEUTRAL'
enum Pango::Gravity
o 'south' / 'PANGO_GRAVITY_SOUTH'
o 'east' / 'PANGO_GRAVITY_EAST'
o 'north' / 'PANGO_GRAVITY_NORTH'
o 'west' / 'PANGO_GRAVITY_WEST'
o 'auto' / 'PANGO_GRAVITY_AUTO'
enum Pango::GravityHint
o 'natural' / 'PANGO_GRAVITY_HINT_NATURAL'
o 'strong' / 'PANGO_GRAVITY_HINT_STRONG'
o 'line' / 'PANGO_GRAVITY_HINT_LINE'
SEE ALSO
Pango, Glib::Object
COPYRIGHT
Copyright (C) 2003-2009 by the gtk2-perl team.
This software is licensed under the LGPL. See Pango for a full notice.
perl v5.12.1 2010-07-05 Pango::Context(3)