Hi !
I have already tried the -R option i.e. vi in read only mode or the same command
i can write as
view <filename> or vi -R <filename>
But i am facing the strange problem.
I am owner of that file.
and when i am opening the file with any of the above command
and suppose i deleted two lines from the file it says
warning : deleting from read only file.
and when i say
:wq to save and quit message is : " 'readonly' option is set (use ! to
override)"
:q the message is : "No write since last change (use ! to override)"
So this option is not working for me.
Prachi.
"Sameer D. Sahasrabuddhe" <[EMAIL PROTECTED]> on 11/27/99 10:54:12 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: Prachi Kulkarni/Systems/NSEIL)
Subject: Re: [ILUG-BOM] To view the file
On 26 Nov 99, at 16:28, [EMAIL PROTECTED] wrote:
> I am the owner of that file. So the command
> System("vi <filename>");
> won't work because it allows to modify the contents of the file.
Please dont underestimate "vi" ....
Do a "man vi" and you will realise that it has a "-r" switch (I think)
that will cause the file to be opened in readonly mode.
Sameer.
To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the
mailing list button and fill the appropriate information
and submit. For any other queries contact the ML maintener
To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list
button and fill the appropriate information
and submit. For any other queries contact the ML maintener