I have been fine adding/removing printers up until this week. Now when I go to add a new remote printer I get "corrupted member file". I go to /etc/lp/member and the byte count on the new printer name is 0. I VI the file and put /dev/null in to make it the correct size and it all looks fine and... (2 Replies)
Hi Gurus,
I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file.
eg. if file a.txt exists then send a mail to a@a.com
simillary for b.txt,c.txt etc.
Thanks for your help,
Nimu (6 Replies)
Hi all,
I'm trying to send a file to a remote host on a DG/UX system connected directly to a serial port of a computer, but every time I try to send the file, the remote host cannot recieve it (the download screen hangs, some wierd characters are displayed when I type the rz command).
I tried... (1 Reply)
Hi everyone
I have one question about using array in perl. let say I have several log file in one folder.. example
test1.log
test2.log
test3.log
and the list goes on..
how to make an array for this file? It suppose to detect log file in the current directory and all the log file will... (3 Replies)
ok, so here is the issue, I have 2 arrays.
I need to be able to create a loop that will find ${ARRAY1 in the text doc, and replace it with ${ARRAY2 then write the results. I already have that working. The problem is, I need it to do that same result across however many items are in the 2... (2 Replies)
Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help.
pesudo code
if == ENDSINFIVEINTS ]]; then
do... (4 Replies)
Hello All,
I am new to unix scripting and wanted to know, is it possible if we find any null value or blank record in the text file.
For example we have a text file with only one column and there are 90 records.
But some times we will have a null value or blank row record in the text file.
I... (4 Replies)
Hi,
This is the content of a file name "test.sh":
#!/bin/bash
if ; then
echo "I am Here"
fi
When runing the command:
./test.sh chair table
The echo command "I am Here" will appear only based on the second value, in other words only if the there is no file name "table" regardless if... (1 Reply)
Discussion started by: uniran
1 Replies
LEARN ABOUT BSD
gerror
PERROR(3F)PERROR(3F)NAME
perror, gerror, ierrno - get system error messages
SYNOPSIS
subroutine perror (string)
character*(*) string
subroutine gerror (string)
character*(*) string
character*(*) function gerror()
function ierrno()
DESCRIPTION
Perror will write a message to fortran logical unit 0 appropriate to the last detected system error. String will be written preceding the
standard error message.
Gerror returns the system error message in character variable string. Gerror may be called either as a subroutine or as a function.
Ierrno will return the error number of the last detected system error. This number is updated only when an error actually occurs. Most
routines and I/O statements that might generate such errors return an error code after the call; that value is a more reliable indicator of
what caused the error condition.
FILES
/usr/lib/libU77.a
SEE ALSO intro(2), perror(3)
D. L. Wasley, Introduction to the f77 I/O Library
BUGS
String in the call to perror can be no longer than 127 characters.
The length of the string returned by gerror is determined by the calling program.
NOTES
UNIX system error codes are described in intro(2). The f77 I/O error codes and their meanings are:
100 ``error in format''
101 ``illegal unit number''
102 ``formatted i/o not allowed''
103 ``unformatted i/o not allowed''
104 ``direct i/o not allowed''
105 ``sequential i/o not allowed''
106 ``can't backspace file''
107 ``off beginning of record''
108 ``can't stat file''
109 ``no * after repeat count''
110 ``off end of record''
111 ``truncation failed''
112 ``incomprehensible list input''
113 ``out of free space''
114 ``unit not connected''
115 ``invalid data for integer format term''
116 ``invalid data for logical format term''
117 ``'new' file exists''
118 ``can't find 'old' file''
119 ``opening too many files or unknown system error''
120 ``requires seek ability''
121 ``illegal argument''
122 ``negative repeat count''
123 ``illegal operation for unit''
124 ``invalid data for d, e, f, or g format term''
4.2 Berkeley Distribution June 7, 1985 PERROR(3F)