ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Working on Unix + Perl scripting, we had an issue with processing and storing the log file on the local folder which causes lot of burden on the server as we have lot of such log files.
Right now, we are processing the log file @ /var/tmp path. Which saves some amount of time and the copies the file to our local folder which takes some more time.
One thought in my mind was that what if I could create a symbolic link for the /var/tmp file instead of copying it helps in reducing the log file time.
Tried with the above idea and had seen issues like content was not visible in Unix and not able to open in WINSCP (short cut is shown-up in red mark). Surprised to see this issue !
One more though is that what if we process all the log data in an array and move this array content to a local file.
We have different servers to do our work. To make my idea work, what kind of setting we need ?
Not sure of the side effects of using the symbolic link.
are there any alternate ways to resolve the issue ?
Last edited by rpittala; 11-27-2015 at 07:21 AM.
Reason: sentence correction
Let me explain you a little more here, when I say log file it means a kind of print statements to collect the pass/fail info and if I run the make file the logs/print-statements corresponding to the make file steps. It could be anything a print statement stored in a log file or redirected to the log file.
Coming to your question. What I have tried ?
I made a symbolic link to the log file(/var/tmp/ which consumes less time to process and store in the path and I am okay with it) and then copying the file to local path.
what is the error message ?
Soft link file created by me is not showing any content in Unix. When I tried to see in winscp the file in red and not able to open it.
Last edited by rpittala; 11-27-2015 at 09:47 AM.
Reason: statement correction
Yes, Uinx follows the symolic links and if the link is broken some where in the code/script Winscp would not support the broken link Where as in case of Unix it provides the output.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.