mr_suleyman
13th October 2004, 08:56
Hello all,
I have problem about seq.read function. When I run it , it fails. I am using following commands :
file = "/bse/home/ougur/data.txt"
fp = seq.open(file,"r")
When I control FP values , fp returns -2 . I couldn't find means of -2. We use unix. In unix side , I control permissions , I think that permissions are OK. I gave full permissions to data.txt ( chmod 777 )
But Why this function fails ? I couldn't understand .
Thanks all in advice
Dikkie Dik
13th October 2004, 09:46
2 ENOENT - No such file or directory
--------------------------------------------------------------------------------
Description:
This error occurs when a specified file name should exist but does not, or when one of the directories in a path name does not exist.
Solution:
Possible solutions:
If a file or directory is missing, you must create the file or directory or restore them using a backup.
If a table is missing, check the company number. Your current company number can be different from the company number the Virtal Machine is using.
The file or directory exists, but still the error occurs. Check the redirection of the files.
Hope this helps,
Dick
pconde
13th October 2004, 09:49
Hello,
I think that this error is "no such file or directory". you try to open a file for reading only that is not found ==> control your path.
Regards
Philippe
bdittmar
13th October 2004, 10:27
Hello,
if you are using HP-UX 11i,
the default path of users is located in "/home/>user<", you're searching the file in $BSE/.......
Check your path and dirctory permissions.
Regards Bernd Dittmar
Dikkie Dik
13th October 2004, 10:31
Hello,
if you are using HP-UX 11i,
the default path of users is located in "/home/>user<", you're searching the file in $BSE/.......
This part is not coorect as an absolute path to the file has been used. Better is to check on unix level on the same account as you logon to Baan:
$ ls -l /bse/home/ougur/data.txt
One other thing: is the declation of "file" ok? I mean can this variable contain sufficient positions?
Kind regards,
Dick
mr_suleyman
13th October 2004, 14:41
Thank you all
I solved my problem . The problem was concern with path of my data file.
Thanks...