No idea. But here's the script for somebody that might me able to help.
(For future reference it's probably better to use the '#' in the toolbar to surrounding your code ;-).
Note: This is not meant to start a flamewar. I am looking for serious answers to questions regarding OpenBSD.
I'm coming to OpenBSD from an eight year background in Linux (specifically various versions of RedHat and now Fedora Core 3). I have some experience with Solaris 8 and HP-UX 11/11i. I... (1 Reply)
I have a process in my TOP output that is consistantly at 97% usage. I have 16 CPUs on my box. So is the 97% the cumalative usage of all the CPUs or just one? (3 Replies)
Howdy all, just joined the forums after finding them on a good ole' google search. very impressed from what i've seen so far! I'm pretty new to the world of Unix/Linux, have just had a change of job role and been thrown in at the deep end! I'm now working on an Oracle 9i database using HPUX... (1 Reply)
Okay, so I'm a little familiar with C and Linux, but my shell scripting experience is limited to say the least. I know that you begin a shell script with this
#!/bin/bash
Basically, I've written a C program that's output writes to a shell script. What my problem is, is I would like this shell... (4 Replies)
please help!
I have a sun blade with 2 x nics configured, both on different subnets. The eri0 interface (192.168.0.100) is connected to my router (192.168.0.1), but if i try to ping the router, it times out.
any suggestions are welcome - i noticed the 2 mac addresses are the same, i've set... (7 Replies)
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
hey guys
I would really appreciate some help, i need to do a project for a job that requires minimal UNIX scripting and im REALLY stuck
basically Im stuck at what i believe is something really simple but i just dont have a clue how to do it efficiently and properly and i REALLY appreciate some... (16 Replies)
I need to read input from a file, and make sure nothing prints after column 72.
basically, ignore input after character 72 until the next newline character.
Any help is appreciated. I have been searching forever! (10 Replies)
Hi folks, can you help me decipher this?
I know that ftp will accept input from all commands until it encounters EOF again but I don't quite make sense of what the entirety of the script is really trying to achieve.
Many thanks.
ftp -n someserver << EOF | head -20
user username@server... (2 Replies)
Discussion started by: verargulla
2 Replies
LEARN ABOUT PHP
fgetc
FGETC(3) 1 FGETC(3)fgetc - Gets character from file pointerSYNOPSIS
string fgetc (resource $handle)
DESCRIPTION
Gets a character from the given file pointer.
PARAMETERS
o $handle
-The file pointer must be valid, and must point to a file successfully opened by fopen(3) or fsockopen(3) (and not yet closed by
fclose(3)).
RETURN VALUES
Returns a string containing a single character read from the file pointed to by $handle. Returns FALSE on EOF.
Warning
This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE. Please read the section on
Booleans for more information. Use the === operator for testing the return value of this function.
EXAMPLES
Example #1
A fgetc(3) example
<?php
$fp = fopen('somefile.txt', 'r');
if (!$fp) {
echo 'Could not open file somefile.txt';
}
while (false !== ($char = fgetc($fp))) {
echo "$char
";
}
?>
NOTES
Note
This function is binary-safe.
SEE ALSO fread(3), fopen(3), popen(3), fsockopen(3), fgets(3).
PHP Documentation Group FGETC(3)