Thanks, but still cant redirect my errors as I need the application (STDOUT) to start anyway, I have a patch which might get rid of the warning - I'll have to try that instead
I have this:
command >& myfile.txt
but it is giving me an error - "Bad Number"
and referencing the file name I used do i need to declare the file name as a variable ?
I tried putting it in "" but got the same error
There is somethiung basic and blatantly obvious that I am...
Basically my script contains one very long command to start an application , the problem is it is generating a warning and i dont want that warning to be displayed how do i redirect the o/p of the command to a file and not to the screen so the user wont see it?
Im trying to produce results like
Line from fileA
Line from fileB
Line from fileA
Line from fileB etc
I have code like this
while(<fileA>)
{
print line
open fileB
while(<fileB>)
{
some processing
print line from fileB
}
close(fileB);
}
close(fileA);
Im using $_ to access a line...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.