Performance reading end of large file [closed] - unix

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have need to implement something similar to tail -f to read new lines added to a log file and handle the log file rolling over. This is for Solaris 10. Currently, the application checks the status of the file every second and if the file has changed, it opens the file, seeks to near the end and reads from there to the end of the file.
That all seems to work fine, but I'm curious what the performance impacts would be when the log file is very large. Does seek actually need to read through the whole file, or is it smart enough to only load the end of the file?

lseek is fast in general use, even for huge files.
See more in the man page.
Depending on special circumstances, it might slow down, but I've never seen those IRL.
Man page: http://www.unix.com/man-page/opensolaris/2/lseek/

Related

Need help on homework about tracert in windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 3 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
This is the question
Select three random companies, and issue the whois and traceroute (tracert in Windows) commands for each one. Tracert is available from a command prompt. To use whois, you will need to search for an online tool. Then write a short paragraph about each utility outlining the kinds of information available from each. Copy & Paste screen shots for each utility and each company to back up the reported findings.
Assuming i am a noob. I would be glad if someone would outline how to tackle this question for my homework assignment.
This is what I make of this question
Tracert
Read this article for information on trace routes
Company 1 - BBC
Run a tracert on bbc.co.uk
C:\>tracert bbc.co.uk
Using the information from the tracert documentation will help you document your findings. Then follow the same methodology for the next two companies.
Who is
There is a webisite Whois Lookup
Just put in bbc.co.uk or whatever.
The first paragraph here outlines the information you can get from it. Also looking up a domain will show you what information this will provide.
The information on the websites will help with:
Then write a short paragraph about each utility outlining the kinds of information available from each.
You will then need to take screenshots.
The question is very straight forward, add a sprinkling of common sense and you have yourself an answer.

Struggling to set up "network" drives on home p.c. to mimic work environment for software development [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I want to mimic my work computer so I can develop with reference to my network drives for my Windows 10 computer at home.
I want S:\ drive to point to some local drive on my computer.
I am following directions to the letter when attempting to create homegroup for windows 10.
When I type HomeGroup under search, I don't see any option, as shown in article below.
Any ideas?
https://support.microsoft.com/en-us/help/17145/windows-homegroup-from-start-to-finish
folks, this is a good question, and I struggled with it.
i don't appreciate the negative points.
here is the answer.
To do what I need to do, you have to go to file explorer, and under sharing tab, i was able to share with everyone (the folder).
Then, in my mappping, i have to refer to \\ComputerName\ShareName.
They keep changing the way things work from one windows to the next....
simple.
Set up drive partitions.
Much simpler and more reliable...

Autocomplete history in rstudio [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
a google search did not help me out so i'm hoping our community will...
i'm new to rstudio and while its easy to just press the up button to go back sequentially through r commands when the command you are looking for is just a few commands back, it's hard when the command is a while back.
I'm looking for something like ctrl-R in linux environments where you type a few letters and it completes your command based on your history.
is there something like this in rstudio?
You can try history()
For e.g
history(max.show = 50, reverse = F, pattern = "data.table::")
This will automatically open the commands used in the past .
You can search in your history in RStudio

Unix Parent-child process relationship [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
i understand well the parent-child relationship in unix processes creation. But i don't understand the rationale behind it :( why do we need to fork from the current process to create a new one, then overwrite its image with a new code if any? cheers
The rationale is that unix system calls (at least originally) are "elementary" operations done by the kernel.
In practice, applications often do some specific things between fork(2) and execve(2), in particular calls to close(2) and dup2(2), also sigaction(2) to ignore some signals (with perhaps some pipe(2) syscalls done before the fork).
If you wanted to have a single syscall handling all this at a time, it would have been very complex, and less flexible.
I suggest to read some book like Advanced Linux Programming (it is free and online) or Advanced Unix Programming in addition of intro(2).
I find on the contrary the intent to separate creating a process and executing a program quite natural. I don't really understand why you want both operations to be combined.
See also this mine answer about syscalls.

Adobe Illustrator - File Grouping [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Is there a way to open multiple AI files (say 3 individual files) and somehow save in a way that I can open the same 3 files simultaneously in the future? I always want the multiple files to open together.
Situation:
We design products with AI. A single product may have multiple versions. The designer typically creates 1 AI file, then puts all versions of the product in the single file. I need them to put each version in a separate file for an integration project, but this creates more work for them.
The solution I'm looking for would allow them to open all the relevant AI file and somehow same them all as a group. Next time, they open the group and all AI files open together.
Thank you
You can group files and tag files in Adobe Bridge, but to open them at the same time you either have to select them all right click and hit open, or have them in the same folder.
Just open notepad, save it in any name as "open" with extension of ".bat" as it will look as "open.bat". Now save in that directory in which files are placed.
Now type
start your_file_name_1.ai
start your_file_name_2.ai
start your_file_name_3.ai
{start[space][file name with extension]}Write as much as you like. And save it. And after saving the file, these files will simultaneously open one after another.
Hop this works.

Resources