ToniA
asked on
Access a flat file on UNIX
We have installed the Notes Server on a UNIX machine.
I want to kill a file from my Agent periodically, but he can't find the path of the file?
CODE LotusScript :
Const path$ = "/lotus/notesr4/data1/sapf ile.csv"
If Dir$( path$ ,0 ) = "" Then
Msgbox( "No file on : '" + path$ + "'" )
Else
Kill path$
End If
Thank you for the help.
ToniA
I want to kill a file from my Agent periodically, but he can't find the path of the file?
CODE LotusScript :
Const path$ = "/lotus/notesr4/data1/sapf
If Dir$( path$ ,0 ) = "" Then
Msgbox( "No file on : '" + path$ + "'" )
Else
Kill path$
End If
Thank you for the help.
ToniA
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Another thing to remember: Unix has case-sensitive filenames!
Hello ToniA,
runnig your code on my Unix mashine worked, after solwing directory and file access bit problems ;-)
Before solwing this probles this messages appeared:
05.06.2001 17:05:51 Addin: Agent 'killIt' error message: Path not found
05.06.2001 17:07:42 Addin: Agent 'killIt' error message: Path/file access error
Do you get something simmelar?
Regards,
stamp
runnig your code on my Unix mashine worked, after solwing directory and file access bit problems ;-)
Before solwing this probles this messages appeared:
05.06.2001 17:05:51 Addin: Agent 'killIt' error message: Path not found
05.06.2001 17:07:42 Addin: Agent 'killIt' error message: Path/file access error
Do you get something simmelar?
Regards,
stamp
Listening...
Maybe this little code sniffet helps???
direc = session.GetEnvironmentStri ng( "Directory" , True) ' get the Notes Data Directory from notes.ini
fileName$ = "sapfile.csv" ' this will be the file system name for the file
fullpath$ = direc + "\" + fileName$
Kill fullpath$
I use this on my Linux Server and it works like a charm...
direc = session.GetEnvironmentStri
fileName$ = "sapfile.csv" ' this will be the file system name for the file
fullpath$ = direc + "\" + fileName$
Kill fullpath$
I use this on my Linux Server and it works like a charm...
ASKER
Stamp:
The message that I get is : "Path not found"
The message that I get is : "Path not found"
ToniA, Did you try my solution ???
checked curdir ???
if so then this quetion doesn't need this much of long wait .
checked curdir ???
if so then this quetion doesn't need this much of long wait .
ASKER
HemanthaKumar :
Hello...Keep it easy. You'll get the points.
Some people maybe has other things to do in sametime!;-\
Thank you for your help
Hello...Keep it easy. You'll get the points.
Some people maybe has other things to do in sametime!;-\
Thank you for your help
I am trying to Keep It Simple.