Search Results

Search: Posts Made By: tprayush
3,440
Posted By tprayush
thanx pseudocoder!! it worked.... but plz tell...
thanx pseudocoder!! it worked....
but plz tell me the reason behind this....i cud'nt get why removiing 'else' part make program work!!
3,440
Posted By tprayush
How to continue in the loop after trapping signal
hi all....

plz tel me how can i solve this....here's the situation (just a sample!!)..

$ cat sigtrap
#!/usr/bin/perl
$SIG{'INT'} = 'ABORT';
sub ABORT {
print "\nStop the loop??...
29,438
Posted By tprayush
thanks matrixmadhan!!!.. i've got anather...
thanks matrixmadhan!!!..

i've got anather problem ...

how can i actually switch to another directory with "chdir" in perl.

like the we used to do is bash as:

$cat abc
cd Desktop/
......
29,438
Posted By tprayush
thanks very much pravin!! it worked :b:
thanks very much pravin!!

it worked :b:
29,438
Posted By tprayush
how to create a file in perl
hey gurus!

i m a perl newbie!!

i want to create an empty file and also directory in perl...

how to print a msg if the present working directory has ".db" extension. like in shell

if [[...
3,095
Posted By tprayush
thanx a lot tyler.....it worked.!!:b:
thanx a lot tyler.....it worked.!!:b:
3,095
Posted By tprayush
how to append a string to next line in perl
hi all , i have a requirement like this..
this just a sample script...

$ cat test.sh
#!/bin/bash

perl -e '
open(IN,"addrss");
open(out,">>addrss");
@newval;

while (<IN>)
{
...
1,960
Posted By tprayush
thanx Jgt for your suggestions!! what i have...
thanx Jgt for your suggestions!!

what i have planned... consider directory named 'employee'.. now directory contains files related to employee information...just as the the default 'employee'...
1,960
Posted By tprayush
Help me on my SQL emulation project!!
hello all!!

I am a newbie to shell scripting and to learn it I took a project in which I m facing a tremendous amount
problems....I Need Your HELP!! the Details of project are as follows:

...
3,280
Posted By tprayush
How to export an array to perl script?
hi all......
i want to use an array ,declared in bash, in embedded perl script.
is there any way to export whole array so that i can use it '$ENV{}' or something..

thanx in advance!!
regards,
...
2,071
Posted By tprayush
no replies yet.....plz help somebody.
no replies yet.....plz help somebody.
7,467
Posted By tprayush
exactly !!!!!! when u write 'split()' alone, by...
exactly !!!!!!
when u write 'split()' alone, by default it assigns the splitted fields in built-in array @_,
so u can access its contents as $_[0,1...].
2,071
Posted By tprayush
thanx varontron !! but my actual problem is...
thanx varontron !! but my actual problem is stated below!!
here is the script sample1.sh

#!/bin/bash
tab=$1;
declare -a ${tab}_fld;
for((i=1;i<=4;i++))
do
echo -n "enter ${tab}_fld[$i]...
2,071
Posted By tprayush
accessing a variable or array of one script in another
hi all, i've a requirement like this.

i want to access the contents of an array declared in one script,which is a bash script, to a second script which is a perl script.

actually i want a sort...
7,467
Posted By tprayush
hi M.Elena, here is the perl script which might...
hi M.Elena,
here is the perl script which might help!!

#!/usr/bin/perl

$sum_col1=0;
$sum_col2=0;
while (<>)
{

split(/ /);

if ($_[1] > 50)
{

$sum_col2 += $_[1] ;
...
3,128
Posted By tprayush
thanks a ton vgersh & sidorenko, u solved my...
thanks a ton vgersh & sidorenko,
u solved my problem.:b:


regards
prayush
3,128
Posted By tprayush
thanks dr.house!! but again output is same!! ...
thanks dr.house!! but again output is same!!
./ex2: line 16: ${1_rec[1]}: bad substitution

i've tried all possible combination..but helpless!!!!!!!:(
3,128
Posted By tprayush
thanks binlib, but its not working!!:confused: ...
thanks binlib, but its not working!!:confused:
the code:
echo ${$1_rec[1]};
is giving this error:
./ex2: line 11: ${$1_rec[1]}: bad substitution

please help me ..its urgent!!!
1,580
Posted By tprayush
in bash u can do this by 'getopts' command: the...
in bash u can do this by 'getopts' command:
the above code would like:
while getopts fh choice
do
case $choice in
-h)
## help
usage
exit
;;...
3,128
Posted By tprayush
problem in access in array variables
hi all, its me again!!! i've requirement like this:
i want to create a file & an array with its name having the filename as its substring. here is the test script!!
#!/bin/bash
touch $1
declare...
2,657
Posted By tprayush
thanks for replying, my requirement is: ...
thanks for replying,

my requirement is:
user can run only those scripts which are in a particular directory along with only some of the regular shell commands like 'clear' etc.
it is somewhat...
2,657
Posted By tprayush
how can i restrict commands
hi all,
i want to restrict commands to run from a specifc directory..and to make that only some specific commands to run ,,not all.

please help me ...how can i make this happen.
2,659
Posted By tprayush
Thanks siba.s.nayak that worked too!!!!!!! ...
Thanks siba.s.nayak that worked too!!!!!!!

(https://www.unix.com/members/302025915.html)
2,659
Posted By tprayush
thanks ilikecows!!!!!!! it worked..
thanks ilikecows!!!!!!!
it worked..
2,659
Posted By tprayush
thanks dr.house...but its not working...the...
thanks dr.house...but its not working...the prompt is still the same!!
Showing results 1 to 25 of 35

 
All times are GMT -4. The time now is 02:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy