Search Results

Search: Posts Made By: kowrip
11,356
Posted By kowrip
Oops. I completely misread what you typed. You...
Oops. I completely misread what you typed. You typed:

"In Perl, you can check to see ...."

I read this as:

"In Perl, CAN YOU check to see .... ?"

Sorry again. I feel like an idiot now....
11,356
Posted By kowrip
Re: search and replace dynamic data in a shell script
First of all, your explanation is very confusing. You didn't explain what my_number_1(10) was. In any case, it seems that what you are trying to do is simple to do in Perl. To see if a line starts...
Forum: Programming 10-13-2003
7,190
Posted By kowrip
OK. If you are authenticating them and you wish...
OK. If you are authenticating them and you wish to run a command as another user besides 'nobody' then do some research on CGIWRAP. This is a "wrapper" program that is setuid root and can switch...
3,659
Posted By kowrip
Re: Perl: sorting files by whats in'em
Your explanation of "overlap" is a bit confusing. By throwing out your "overlapping" numbers, you are already assuming that your numbers are mostly sorted descending. Explain what you are trying to...
Forum: Programming 10-13-2003
7,190
Posted By kowrip
You want to allow the user to save the file...
You want to allow the user to save the file ANYWHERE they want ? This is not a good idea. Does you web server authenticate the user at all ? If you authenticate the user's identity, you can use a...
Forum: Programming 10-10-2003
7,190
Posted By kowrip
What do you need this file for ? You can use...
What do you need this file for ? You can use certain facilities such as "cgiwrap" that can change to another user, but it would have to be setuid root. If they are just some temp files, use the...
11,557
Posted By kowrip
This type of work involves pretty basic Perl...
This type of work involves pretty basic Perl commands. After you open your file, read each line and call the split() function on each line in order to split the line into fields, delimited by the...
11,557
Posted By kowrip
What exactly is your question ???
What exactly is your question ???
Forum: Programming 10-08-2003
1,879
Posted By kowrip
What is the name of your file ? The undefined...
What is the name of your file ? The undefined symbol looks like a name mangled C++ symbol. g++ is really just gcc which is invoked with some flags to tell gcc to compile using C++. However, gcc...
Forum: Programming 10-07-2003
1,879
Posted By kowrip
Re: why the code cant work?
'gcc' has many options. What is the exact gcc command that you are using ? You may also try using 'g++' and see if that changes anything. I've had similar problems happen when multiple instances...
10,171
Posted By kowrip
Re: Re: Re: Perl: Filename expansion?
yeah, my mistake .... I meant assign @ARGV to @array
clobbering the @ARGV would NOT be good :D
10,171
Posted By kowrip
Re: Perl: Filename expansion?
When your perl script is invoked from the shell with wildcards such as the "*", the SHELL expands the arguments. Suppose your current directory only contains 3 directories named "mydir", "hisdir",...
5,794
Posted By kowrip
If it just needs to be run once, look at the "at"...
If it just needs to be run once, look at the "at" command as well. Crontab is more for scripts that are run routinely.
Forum: Programming 10-03-2003
9,733
Posted By kowrip
I'm not familiar with the conio.h header file. ...
I'm not familiar with the conio.h header file. However, I did a quick search on it. It seems to define a lot of screen-based functions. You may want to look into the curses library on UNIX systems...
Forum: Programming 10-02-2003
25,151
Posted By kowrip
Yes, it was "==". That was a typo.
Yes, it was "==". That was a typo.
Forum: Programming 10-02-2003
25,151
Posted By kowrip
Thanks. I knew it was something stupid. I...
Thanks. I knew it was something stupid. I hardly ever use the bitwise operators so that's why I was confused. It makes sense now too because the execute bit was the one that was causing the...
Forum: Programming 10-02-2003
25,151
Posted By kowrip
Using stat() to determine file permissions
I'm having a problem verifying a directory's permissions using the stat() command. I want to flag an error condition if the directory is WRITABLE by either group or other. This is the code I'm...
3,661
Posted By kowrip
You could also just change the IFS variable to...
You could also just change the IFS variable to ',' and the use 'read' to read each value. The 'cut' command could be of some use here if you need to pull individual fields, but "awk -F\," would...
4,066
Posted By kowrip
Just a side question pertaining to the original...
Just a side question pertaining to the original question .....

Is there a way in shell to use the string in a variable as the name of another variable like the original poster was trying to do ?? ...
19,224
Posted By kowrip
That script works, but it assumes that he is...
That script works, but it assumes that he is using Oracle. Anyway, this type of assignment should work for most databases. You just replace the "sqlplus" line with whatever database command line...
Forum: Programming 09-16-2003
3,383
Posted By kowrip
It's probably a better idea to use...
It's probably a better idea to use fprintf(stderr, ... ) so that any errors are IMMEDIATELY reported. Otherwise, your program may die before the stdout buffer makes it to the screen. I've had this...
2,944
Posted By kowrip
I've also NEVER seen any professor give any sort...
I've also NEVER seen any professor give any sort of lecture or even GUIDANCE on debugging code. If it's such a valuable skill, it should be emphasized more.
2,944
Posted By kowrip
In my academic experience, professors taught the...
In my academic experience, professors taught the concepts and very rarely got into the guts of the code. Learning the actual syntax and pitfalls of the specific programming code was the students'...
2,944
Posted By kowrip
Geez .... the person can't even ask for some help...
Geez .... the person can't even ask for some help debugging code that they have ALREADY written ? I don't see what's the problem with helping somebody who is obviously making an attempt to do the...
4,123
Posted By kowrip
Re: Re: Wrong Shell Invoking My Script On Linux
Thanks. This behavior was quite surprising to me and my co-workers. We always thought that the system will use whatever your current $SHELL is to run scripts without the "#!". This script is a...
Showing results 1 to 25 of 32

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