IMG Home PageIMG ProductsProduct DownloadsOrdering InformationTechnical Support and Frequently Asked QuestionsDeveloper's Corner and UtilitiesAbout IMG
CustomersIMG ResellersMedia InformationIMG Events / Trade ShowsUseful LinksIMG Contact InformationIMG Information / Policies

IMG KnowledgeBase & Frequently Asked Questions

IMG Logo



Search FAQ's

Keyword Keyword Search Help
Category Type Product Version

Searching for ID: QU1123120984

QU1123120984
In My-T-Soft for Linux, is there a way to specify a different location for the mytsoft.log file?

Yes, although not directly with the mytsoft executable or by specifying a location directly. The approach is to use a symbolic link in the Linux file system to locate the actual log file in a different directory. As a quick background, the log file must be named mytsoft.log, and it is used as a flag to indicate the executable should log certain events. This must exist in the same folder as the executable. However, on some systems there may be a preferred log file location, or there could be other security issues that preclude using the executable location. So the solution is to use the ability in the Linux file system to create a symbolic link to the actual file.

Let's say you have a log location like:

/var/log/ourfiles/logs

First make sure no current mytsoft.log exists in the mytsoft folder (i.e. where the executable is).

Then do the following to match your speciifc situation:

cd /var/log/ourfiles/logs[Enter] (Change to log location)
touch mytsoft.log[Enter] (create empty file in log location)
cd /location/where/mytsoft/is/[Enter] (Change to where mytsoft is)
ln -s /var/log/ourfiles/logs/mytsoft.log mytsoft.log[Enter] (create symbolic link)

Run the mytsoft executable. The actual logged entries will be in the mytsoft.log in the /var/log location

Of course, permissions and all that needs to be configured so there is appropriate write access available to the user/process. Important to test and verify the proper functioning of this approach.

This works because the flag to enable logging is just the existence of the mytsoft.log file, and with the symbolic link, the mytsoft executable sees the symbolic link file as the flag, while the actual "file" is the one in the log location. The end result is the log data is placed in an external file in a different location (as specified).

Category: UsingType: Question/Answer Product: My-T-SoftVersion: 2.20

Notes:



IMG Home PageIMG ProductsProduct DownloadsOrdering InformationTechnical Support and Frequently Asked QuestionsDeveloper's Corner and UtilitiesAbout IMG
CustomersIMG ResellersMedia InformationIMG Events / Trade ShowsUseful LinksIMG Contact InformationIMG Information / Policies


As seen in ...

Yahoo!finance