06-05-2005
Quote:
Originally Posted by karthee
Hi,
I have an requirement of reading a long line of 7000 chars and cutting it
iam doing this :
while read -r x
do
echo $x
.........
done < `cat filename`
when iam doing this it is giving me "0403-016 Cannot find or open the file."
Can anyone let how this can be done.
For the line,
echo $x
Think about what could happen if there is semicolon/quote/comma within $x.
You may want to try, in bash
echo -E "$r"
Tom
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I got a script from one of the unix forums for reporting on filesystem usage and wanted to use it but it keeps giving me the following error.
0403-057 Syntax error at line 70
The script is shown below.
Pls help as I am new to UNIX.
# set -x
# D I S K S P A C E . S H
#
#... (2 Replies)
Discussion started by: OMONI
2 Replies
2. Shell Programming and Scripting
Hello, i am familiar enough with unix to do some damage but thats about it.
We have a set of RS/6000 43P Model 150's running AIX for our Catia V4 programmers.
back in the 90's a script was written to automate the conversion of files into machine code. that script has started giving us... (0 Replies)
Discussion started by: jgruenwald
0 Replies
3. Shell Programming and Scripting
Hi All
I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error.
#!/bin/ksh
#-------------------------------------------------------------------------
# File: ang_stdnld.ksh
#
# Desc: UNIX shell script to extract Store information.... (3 Replies)
Discussion started by: amitsinha
3 Replies
4. SCO
Hello...
i got an error in my SCO OpenServer 6. the error is:
msgcnt 1 vxfs: mesg 016: vx_ilisterr - / file system error reading inode 373
Can anyone help me? (1 Reply)
Discussion started by: AndryMB
1 Replies
5. Shell Programming and Scripting
I get this error when attempting to run a simple .ksh script. This script runs fine on other servers. What causes this error? (3 Replies)
Discussion started by: ivanachukapawn
3 Replies
6. Shell Programming and Scripting
i dont know where m i mistaking.. please help me out with this issue :(
thanks in advance:rolleyes:
one_main()
{
a=100
while ;
do
clear
echo "##############################################"
echo ":: CURRENTLY YOU ARE IN RC AND OC MARKING ::"
echo... (1 Reply)
Discussion started by: Puneet sinha
1 Replies
7. AIX
Hi,
I am new to shell scripting.i am trying to mail after my backup completed.
Here is my shell script:
if ; then
egrep (ERROR|error|Error|RMAN-) ${/backup/RMANBKUP/spool/shelltest.log} > /dev/null
if ; then
RESULT_MSG=WARNING: Errors occurred during the ${ORACLE_SID} Rman... (3 Replies)
Discussion started by: faruqms
3 Replies
8. Shell Programming and Scripting
I am trying to identify all messages or prompts from a number of COBOL programs and they can usually be identified by a pair of double quotes on one line. However, sometimes the literal will not be finished on the first line but after a dash in column 7 of the next line, the literal will be... (6 Replies)
Discussion started by: wbport
6 Replies
9. Shell Programming and Scripting
Hi,
While executing my code i am getting below Error:
./check_disk1: 0403-057 Syntax error at line 55 : `(' is not expected.
My code is :
#!/bin/ksh
PROGNAME=`basename $0`
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3
OS=$(uname)
AWK="/usr/bin/awk"... (6 Replies)
Discussion started by: abodage
6 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I am comparing the number of records in the .bad record from sql loader, if it is higher than the number passed in as an argument, the program should exit. However, I constantly receive the error " 0403-016 Cannot find or open the file." on the line with the if statement "elif ;". The code... (3 Replies)
Discussion started by: MIA651
3 Replies
LEARN ABOUT PHP
mongogridfsexception
MONGOGRIDFSEXCEPTION(3) 1 MONGOGRIDFSEXCEPTION(3)
The MongoGridFSException class
INTRODUCTION
Thrown when there are errors reading or writing files to or from the database.
CLASS SYNOPSIS
MongoGridFSException
MongoGridFSExceptionextends
MongoException
ERROR CODES
MongoGridFSException error codes
+-----+-------------------------------+---+---+
|Code | | | |
| | | | |
| | Message | | |
| | | | |
| | Reason | | |
| | | | |
+-----+-------------------------------+---+---+
| 3 | | | |
| | | | |
| | Could not open file $filename | | |
| | | | |
| | Attempting to store an | | |
| | invalid file, such as direc- | | |
| | tory | | |
| | | | |
| 4 | | | |
| | | | |
| | File $filename is too large: | | |
| | $filesize bytes | | |
| | | | |
| | Maximum filesize in GridFS is | | |
| | 4GB | | |
| | | | |
| 5 | | | |
| | | | |
| | could not find filehandle | | |
| | | | |
| | Resource doesn't have a file- | | |
| | handle | | |
| | | | |
| 6 | | | |
| | | | |
| | no file is associate with | | |
| | this filehandle | | |
| | | | |
| | Resource isn't a file | | |
| | resource | | |
| | | | |
| 7 | | | |
| | | | |
| | error setting up file: $file- | | |
| | names | | |
| | | | |
| | Could not open file for read- | | |
| | ing | | |
| | | | |
| 9 | | | |
| | | | |
| | error reading file $filenames | | |
| | | | |
| | Failed reading file | | |
| | | | |
| 10 | | | |
| | | | |
| | error reading filehandle | | |
| | | | |
| | Failed reading from a | | |
| | resource | | |
| | | | |
| 11 | | | |
| | | | |
| | could not find uploaded file | | |
| | %s | | |
| | | | |
| | Filename doesn't seem to be | | |
| | uploaded file | | |
| | | | |
| 12 | | | |
| | | | |
| | Couldn't find tmp_name in the | | |
| | $_FILES array. Are you sure | | |
| | the upload worked? | | |
| | | | |
| | Uploaded filename probably | | |
| | failed | | |
| | | | |
| 13 | | | |
| | | | |
| | tmp_name was not a string or | | |
| | an array | | |
| | | | |
| | Invalid filename given | | |
| | | | |
| 14 | | | |
| | | | |
| | couldn't find file size | | |
| | | | |
| | The $length property is miss- | | |
| | ing | | |
| | | | |
| 15 | | | |
| | | | |
| | Cannot find filename | | |
| | | | |
| | No filename provided, and no | | |
| | $filename property set | | |
| | | | |
| 16 | | | |
| | | | |
| | could not open destination | | |
| | file %s | | |
| | | | |
| | Destination filename not | | |
| | writable | | |
| | | | |
| 17 | | | |
| | | | |
| | error reading chunk of file | | |
| | | | |
| | Chunk corruption | | |
| | | | |
| 18 | | | |
| | | | |
| | couldn't create a php_stream | | |
| | | | |
| | Couldn't create a stream | | |
| | resource | | |
| | | | |
| 19 | | | |
| | | | |
| | couldn't find $property | | |
| | | | |
| | Chunk corruption | | |
| | | | |
| 20 | | | |
| | | | |
| | chunk $number has wrong size | | |
| | ($size) when the max is $max- | | |
| | chunksize | | |
| | | | |
| | Chunk larger then expected | | |
| | | | |
| 21 | | | |
| | | | |
| | chunk has wrong format | | |
| | | | |
| | Chunk corruption | | |
| | | | |
+-----+-------------------------------+---+---+
PHP Documentation Group MONGOGRIDFSEXCEPTION(3)