Previous Thread
Next Thread
Print Thread
ashlog.log #10254 23 Jan 07 07:13 PM
Joined: Jun 2001
Posts: 410
V
Valli Information Systems Online Content OP
Member
OP Online Content
Member
V
Joined: Jun 2001
Posts: 410
Can someone tell me how to stop ashell from logging mkdir commands to ashlog.log? only trace option i have set is SIGHUP

thanks

Re: ashlog.log #10255 23 Jan 07 09:03 PM
Joined: Jun 2001
Posts: 11,650
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,650
mkdir commands are logged if TRACE=FOPENS or if there is an error in the operation. (The FOPENS trace is pretty verbose anyway, so it didn't seem as if adding mkdir to it would be a big deal, unless you open very few files but create a lot of directories.)

To doublecheck which traces are on, just use SET TRACE. If confirmed that FOPENS is not set, then it suggests that an error is occurring in the mkdir.

What does the log message say?

Re: ashlog.log #10256 24 Jan 07 05:54 AM
Joined: Jun 2001
Posts: 410
V
Valli Information Systems Online Content OP
Member
OP Online Content
Member
V
Joined: Jun 2001
Posts: 410
the error portion explains it then as the directory already exists. I took the shortcut of just attempting to create it with out checking if it exists and since i attempt to create each time i go to create the file, upto 1000 per directory, my ashlog.log fills up with these. thanks

Re: ashlog.log #10257 24 Jan 07 07:15 AM
A
Anonymous
Unregistered
Anonymous
Unregistered
A
I am probably speaking out of turn and you probably already use this but.

xcall miamex,3

If you setup the parameters right you can get back a status of non zero if the directory does not exist. I use this alot for converting to and from native and amos.

Again just ignore this if I am behind.

Re: ashlog.log #10258 24 Jan 07 07:55 AM
Joined: Jun 2001
Posts: 410
V
Valli Information Systems Online Content OP
Member
OP Online Content
Member
V
Joined: Jun 2001
Posts: 410
thanks, looks like i was following jacks suggestion in the documentation for miamex 97 and saving myself a step

Re: ashlog.log #10259 24 Jan 07 09:45 AM
Joined: Jun 2001
Posts: 11,650
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,650
Both points are valid (i.e. you could avoid the error by checking first, as Ken suggests, but on the other hand, as I myself suggested, checking is basically no more efficient than just trying to create the directory.)

I think I'll remove the automatic log message feature when the error is simply "directory already exists".


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3