Search Results

Search: Posts Made By: wolwy_pete
3,958
Posted By wolwy_pete
oops!! ur correct cfajohnson, never thought of...
oops!! ur correct cfajohnson,
never thought of spaces in a file name,
sorry abt that.
3,958
Posted By wolwy_pete
This one works too, tested on gentoo, bash 3.1.16...
This one works too, tested on gentoo, bash 3.1.16

for i in $( find /test -iname "A*.TXT" );
do
if [ -r "${i}" ] ; then
printf "Test OK\n"
else
printf "Test NG\n"
fi
done
Forum: Programming 09-04-2008
4,565
Posted By wolwy_pete
Xlib Problem: XCloseDisplay seg fault
Hi,
First of all forgive me if Xlib related problems does not go under this thread.

In my main program, im using Xlib`s XImage type object which contains a regularly updating bitmap, and maps the...
Forum: Programming 06-08-2008
10,811
Posted By wolwy_pete
Thankx fpmurphy for the reply, actually i had it...
Thankx fpmurphy for the reply, actually i had it given up until i saw ur answer recently. it worked, up to my requirement, thankx.
wolwy.
Forum: Programming 06-03-2008
10,811
Posted By wolwy_pete
diren.h : readdir( ) - sorting requirement
hi all,
im using dirent.h headers readdir() function to traverse down a directory ( after openning it with opendir() ), and im printing the dir->d_name in a program.


while(( dir = readdir( d )...
Forum: Programming 05-08-2008
3,998
Posted By wolwy_pete
thankx ramen_noodle & andryk :b: ramen_noodle...
thankx ramen_noodle & andryk :b:
ramen_noodle was actually correct, sorry abt my lack of knowledge.
i put a loop in my main program and it was ok.
wolwy.
Forum: Programming 05-08-2008
3,998
Posted By wolwy_pete
create a thread from a returning function
hi all,
my requirement is to create a thread by calling another function.
i.e i dont call pthread_create directly from main, but by calling another function (createThd - below ), from main. ...
8,413
Posted By wolwy_pete
sorry about my lack of understanding on how these...
sorry about my lack of understanding on how these functions work.
buffoonix`s method also works fine. thankx.
8,413
Posted By wolwy_pete
thankx era for the quick reply, i subtracted...
thankx era for the quick reply,
i subtracted ten thinking that the length of the string im gonna print is 10. :)
what u said worked :b:, but i still had to use the eval.
anyway, thankx for the...
2,727
Posted By wolwy_pete
#!/usr/bin/perl my $file = $_[0]; ...
#!/usr/bin/perl

my $file = $_[0];

open (FILEPTR, $file) or die "an error occured while reading file !";
while ( <FILEPTR> ) {
print "$_";
}

close ( FILEPTR );
8,413
Posted By wolwy_pete
perl: printf indentation problem
hi all,
im having a problem with using perl printf. my requirement is to print a string (like [OK]) at the right most end of the screen.
i tried this perl script, but it fails with an error;
...
24,474
Posted By wolwy_pete
thankx very much guys, it worked, the split...
thankx very much guys,
it worked, the split function was quite useful.
24,474
Posted By wolwy_pete
perl newbie: how to extract an unknown word from a string
hi,
im quite new to perl regexp. i have a problem where i want to extract a word from a given string. but the word is unknown, only fact is that it appears as the second word in the string.

Eg....
Showing results 1 to 13 of 13

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