Just one thing to realize: system() runs a shell exactly like the shell the scripts I already showed you ran in.
So you are not running perl instead of shell. You're running lots and lots of shells, with a tiny topping of pointless perl. (Sorry, it's a peeve of mine.)
---------- Post updated at 05:37 PM ---------- Previous update was at 05:24 PM ----------
Hi,
Is it possible to delcare hashes in KSH the way we do it in Perl.
Like I want to declare something like:
fruits="Juicy"
fruits="healthy"
fruits="sour"
echo fruits
Ofcourse this piece of code does not work in KSH. Please let me know if there is a way of doing it in KSH.
... (2 Replies)
Hi frind,
i="1"
while
do
echo "i is $i"
data_file=$HYP_ROOT/import/efcextr$i.txt
echo "$data_file"
i=`expr $i + 1`
done
This is woring finly in ksh but not in ksh.
in ksh it showing error
i=1: Command not found
i: Undefined variable
Kindly help me ...why it is showing the error... (1 Reply)
i have created a script to insert 100K rows into mysql db.
But the forst line where i declare the variable is giving error. I am new to mysql. Can anyone help me in this?
the script is
======================================
DECLARE
c INT(10) := 54;
BEGIN
WHILE c <... (4 Replies)
I recently installed Cygwin on my windows vista to practice on Linux\unix commands.
I am unable to do a simple task of declaring variables on the command prompt
I am trying:
$ vech=Bus
$ echo $vech
bash: vech : command not found
What am I missing? Do i need to add something to .bashrc?
... (1 Reply)
hi to all,
i am trying to declare a variable as an integer in unix shell script. i search the web for a way to do it but it doesnt work.
i tried "define -i" and "declare" but that doesnt work.
if somebody knows another way to declare a variable as integer please help me.
thank you (2 Replies)
Hi
I've few shell scripts which are responsible for triggering the continuous builds for a specific module. Each shell script is for a Module. Shell script has some module specific settings in the beginning and then it triggers the builds (which are nothing but some combination of Java programs... (2 Replies)
what I'm trying to do is ... need to drop tables w/ names like
ABC_NY_2001
ABC_ORD_2001
ABC_TX_2001
ABC_CL_2001
For this, I want to write a query "DROP TABLE ABC_var_2001".
now "var" should be either NY, ORD, TX or CL.
I'm new to programming so don't know how to create a variable w/ OR... (3 Replies)
I am trying to declare a variable like this
#!/bin/csh -f
set c_arg = $a $b $c
However, since i need it to declare before declaring $a ,$b or $c.
As of now i am getting an error which says $a not defined.
Is it possible to define a variable c_arg w/o interpreting the values $a $b $c (2 Replies)
Hi, guys, i have a script i inherited from a coworker but i'm not perl savy. The script works but i would like it to work better. I want to run this command
./ciscomgrtest.pl -r "show version" -h hosts.router
and have the script goto each router in the hosts.router file and run the command... (2 Replies)
If I am running a bash command, and some awk getting the ethernet adapter on the local machine. It works fine. But if I will run it from the remote, it is EMPTY on echo and throwing error in grep.
Thank you
This work perfectly fine
$ f=`/sbin/ip a|grep 127.127 | awk '{print $NF }' ` ; ip... (2 Replies)
Discussion started by: kenshinhimura
2 Replies
LEARN ABOUT DEBIAN
dh_consoledata
DH_CONSOLEDATA(1) User Contributed Perl Documentation DH_CONSOLEDATA(1)NAME
dh_consoledata - declare console data files
SYNOPSIS
dh_consoledata [debhelper options] [-n]
DESCRIPTION
This program is meant to assist in building a package that provides data files for the console. It is still in the early stages of
developement, and many features are still missing or partly implemented. Please look at /usr/share/doc/console-common/TODO for more
details.
For now this program takes a debian/package.keymaps file, installs in in the package build directory, and creates the debian/package.config
and debian/package.templates files.
It also makes the ${console:depends} variable available for the control file. This variable should be referenced in the Depends field, as
should ${perl:depends} if you use dh_perl (which you should call anyway, since your package will include a perl debconf script).
It should ultimately allow to declare fonts and SFM fallbacks.
OPTIONS -n, --noscripts
Do not modify postinst/postrm scripts.
-d Install the debconf templates and config script (and add the postinst fragment, unless -n is also specified), even if there is no
debian/package.keymaps file. This is normally intended for internal use, be careful that the name of the option and its semantics will
probably change in the near future, to accomodate for new needs.
SEE ALSO debhelper(1)
This program is an extention to debhelper.
AUTHOR
Yann Dirson <dirson@debian.org>
perl v5.14.2 2011-12-05 DH_CONSOLEDATA(1)