Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: gusla
2,367
Posted By gusla
perl package directories - what if the script is diff DIR to the one contain *.pm?
Hi there,

say the package is in the ~/ and it's ~/packageFoo.pm

I can use usePackage.pl in ~/ (~/usePackage.pl).

Now, if I move it to ~/subDIR/usePackage.pl, the script won't work because...
5,289
Posted By gusla
thans
guys
5,289
Posted By gusla
Perl and refresh button, save twice?
Hi guys,

I am writing a simple script save_me.cgi that can save the data in form.html into a txt (data.txt)file.
But when user click "refresh" button one the browser on page save_me.cgi, the...
32,447
Posted By gusla
join 2 array in perl?
Hi guys,

Can anyone tell me how to join 2 array together?

@array1=("abc", "def");
@array2=("xyz", "uuu");
@join_array = fun(@array1,@array2);

# @join_array == ("abc", "def", "xyz", "uuu")...
7,683
Posted By gusla
the value is not returned by unix script
hmm, is there no distinguish between 1 and 15? The unix script invokes an other program (natural program). I presume the return value is from the 'natural program'. Is that mean depends on the...
7,683
Posted By gusla
the return value $?
Could someone tell me that's the return value $? 15 mean? Where can i find out more?

Many thanks
Forum: IP Networking 09-18-2002
8,596
Posted By gusla
Linux eth0 incative
Hi there,

I got a problem with my linux eth0.

It worked well, just one day when i boot it, "Failed" to be active.

The eth0 is inactive! I tried to use KDE network configuration tool to add...
3,941
Posted By gusla
perl: why the return valure of stat and lstat are the same?
i tried to use stat to get the attributes of a file and a soft link. but the result i got from stat and lstat are the same.

say:
ln -s f1 soft1 (soft is a soft link , point to f1)

if...
11,277
Posted By gusla
i wanted to pipe to perl!
thks Freelive.

my initial purpose is wanted to pipe the files to a perl program.

see, say my perl program is getfile.pl (taking file names as argumemnts)

# getfile.pl
#!/usr/bin/perl -w
...
11,277
Posted By gusla
broken pipe?
Hi there,

I try to use:
> find * | ls
but it just gave me one level of ' ls '. and it said:

> find * | ls
dir1 dir2 f1 f2 f3
Broken Pipe
>

what is broken...
25,582
Posted By gusla
how to find out the files have the same inode number? and ..
thank you guys for taking time typing the stuff. it's been really helpful.

how to find out the files have the same inode number? and, is it easy to find out who has access to my files?

thks
25,582
Posted By gusla
links: (soft, hard? symbolic??) inode
Hi,

what is link? and soft link? how about hard one and symbolic link.
and inode.

i get confuse about this links. could anyone help me with full explainsion?

thks

Gusla
2,037
Posted By gusla
cool
thks Lexx, u r coool
2,037
Posted By gusla
a simple perl
not sure if i should post here or "shell programming"

anyway, i am just start learning perl.

1 #!/usr/local/bin/perl
2
3 $test1="Iam";
4 if ($test1=="anything")
...
184,043
Posted By gusla
but,
Thxs Neo

how to setup for all vi. I mean every time i go into vi, the tab size is 4.
do i want too much?
184,043
Posted By gusla
how to change the tab size in vi?
the default size is 8. i found it's too big.

how can i change the tab size in vi? is it a good idea to change it at all?

thks
8,837
Posted By gusla
variables use upper case? sed : output to the same file?
Hi,

Q1: are the variables in shell script usually UPPER CASE?

Q2: can sed output to the same file that it's using it?

eg. cat sameFile | sed 's/here/there/g' > sameFile ?

I expect...
8,944
Posted By gusla
Help, boys: How to 'unset noglob' in a SCRIPT? Help!
Hi, I am stuck.. need help

I am writing a script that takes arguments. first check if the arguments contain wildcard (?,*) . if it contains , list it. if it doesn't contains, do something else...
8,944
Posted By gusla
how to check if the argument contain wildcard (*,?) ?
In a script , i would like to check if the argument ( $1, $2 inside the script) contain wildcard (*,? etc). how do i do it?

> script_name arg1 arg*

$1 (arg1) does not contain wildcard, but $2...
170,869
Posted By gusla
thk
u both
170,869
Posted By gusla
how to check if the file exist or not?
say i would like to check if the file is existed before i use rm command. How can i do it?

i know if i can use find, but i would like to have a good interface (in a shell script)



thks
1,972
Posted By gusla
how do i installed in my $MANPATH?
how do i installed in my $MANPATH?
CAN i do it myself? or i have to ask adm to do it for me?

thks
1,972
Posted By gusla
the error is:
when i type "man perl", the error is:
No manual entry for per

"man -k perl" -> appear nothing and turn to next prompt

help!
1,972
Posted By gusla
how do i get the "man perl"?
I know is about MANPATH, BUT i don't how.

Perl is in my network. however, i am not able to use conmmand line "man perl". can anyone tell me?
3,944
Posted By gusla
absolute path in contab?
i execute a cript1 in a certain time using crontab. that script1 call another script (say script2). do i have to put absolute path in script1 and crontab?
do i have to use absolute path in crontab?...
Showing results 1 to 25 of 31

 

Featured Tech Videos

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