Search Results

Search: Posts Made By: jo_aze
3,211
Posted By jo_aze
sorry ... and THANKS.
sorry ... and THANKS.
3,211
Posted By jo_aze
I just need to create few basic functions in...
I just need to create few basic functions in separate files like this one:
# lib.pl
sub fonc
{
$arg1=$_[0];
$arg2=$_[1];
print "arg1=$arg1, arg2=$arg2\n";
}
1;

I try to call this module...
3,211
Posted By jo_aze
Writing perl module
Hi,

I'd like to create perl functions in separate file from my scripts.
Does somebody know if it's possible to create and use a perl module without compiling it ?

Thanks.
3,535
Posted By jo_aze
ok. I think i've no choice. Thanks.
ok. I think i've no choice.

Thanks.
3,535
Posted By jo_aze
Thanks but do you know if there is a syntax...
Thanks but do you know if there is a syntax calling proc_sub with arguments:

require proc_sub "arg1" "arg2" ... "argn" # ?
3,535
Posted By jo_aze
status of perl script in another ...
Hi,

Is there a way to get the status of a perl program in another perl script ?

Ex.:
1/ proc_sub.pl:
print "test programme perl\n" and exit 1;

2/ proc_main.pl:
print "status of...
1,721
Posted By jo_aze
Sorry, I've found the solution of my pb...
Sorry,

I've found the solution of my pb using eval function like this:
ID="EAR"
PART_EAR="GEFEAR"
=> eval echo \$PART_$ID
should equal to "GEFEAR".

Thanks.
1,721
Posted By jo_aze
using variable in a variable
Hi,

I Have two variables declared like this:
ID="EAR"
PART_EAR="GEFEAR"

and I want to get in the same script the value of the variable PART_$ID which should be "GEFEAR".
I try with eval...
2,951
Posted By jo_aze
EOF use
Hi,

I'd like to access a windows directory from aix with samba client.
To allow direct access (not interactive), i'm using EOF like:

smbclient \\\\winserver\\windir 'passwd' -U usersmb << EOF...
3,756
Posted By jo_aze
rsh with local variables
Hi,

I am trying to do an rsh and execute the same script on a distant unix computer.
The problem is that I need to get all the local variables of the distant computer to launch correctly my...
3,183
Posted By jo_aze
It's ok. Thanks for your reply.
It's ok.
Thanks for your reply.
3,183
Posted By jo_aze
sed substitution
Hi,

I have a set of files containing strings like I.TEST1_TEST2 or B.ESSA_ESSB for example.

Does somebody know how to substitute these strings whith the same name and an extension "_V1" (ie....
32,338
Posted By jo_aze
Thanks for reply. VAR1 and VAR2 are called...
Thanks for reply.

VAR1 and VAR2 are called as arguments so i have prefered this solution:
VAR="/app/share/eai"
VAR=$(echo $VAR | sed s/\/\\\//)

VAR1=$1 #...
32,338
Posted By jo_aze
sed syntax
Hi,

How can i use sed command to modify a part of a variable containing "/" by another containing "/" like describe below:

VAR="/app/share/eai"
VAR1="/app/share"
VAR2="/data/test"

echo...
1,973
Posted By jo_aze
I've found a simple solution to my problem. ...
I've found a simple solution to my problem.
It's just syntactic:
My solution is based on behavior of echo command like describe above and the maner of passing parameters (with quotes !).
1,973
Posted By jo_aze
I don't think that the menu is in question for...
I don't think that the menu is in question for the moment. In fact and for informations, the script menu reads a list of scripts according to specific arguments.

Actualy, i'm trying different...
1,973
Posted By jo_aze
It could work but i'd like to keep the meaning of...
It could work but i'd like to keep the meaning of "*".
Furthermore, "arg=/app/share/*" is just an example, i have develop a generic menu which should call above a set of scripts using this type of...
1,973
Posted By jo_aze
display "*"
Hi,

I've a problem with display "*" character:
I'd like to use a script which take a complete path of set of files or directories in argument and separate them into their "dirname" part and their...
4,482
Posted By jo_aze
Thank to be indulgent about my english ... ...
Thank to be indulgent about my english ...
Yours suggestions and remarks are correct and i noticed that precisions miss so:

My complete problem is that i'm trying to set up a method (using find...
4,482
Posted By jo_aze
This method filters entirely the path of your...
This method filters entirely the path of your search. Ex.:
find . -type d | grep -i toto
will show all directories and sub-directories containing "toto" in their paths like:
./toto
./test/ToTo...
4,482
Posted By jo_aze
Thanks for this suggestion but i've found nothing...
Thanks for this suggestion but i've found nothing that i've not yet be done ...
In fact, i'm searching for a substitute of "-iname" option. I'd like to use a loop using a variable ($var for example)...
4,482
Posted By jo_aze
Using find command
Hy,
Does someone know how to setup "find" command allowing to find all files or directories according to a specific filter whatever case sensitive (I'm working on AIX platform 4.3.3).
Example:
...
Showing results 1 to 22 of 22

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