I come from web programming background, and find myself interested in one peculiarity of using a local shell. I understand that when a program reads from file, it can read at whatever rate's necessary. But I'm curious to know, how does it work when a program gets other program's input piped in and can't process it in realtime?
A good example would be video encoding.
I got a problem to read standard input file, to edit the standard input, and to write the output to other file.
I have a program that forks a process, and determine if child process should run in foreground and background. I call the signal function to handle the child signal before forking, to make sure dead child process will not turn into zombies.
Dear All,
I had a basic knowledge in scripting, so am accepted a new task with some confidence. I need to write a shell script for set of operation which we do manually for patch deployment process. We are trying to automate the process. In my project we have 17 type of patches.
Hello All,
I am facing difficulty in getting the PID value & then assigning it to a variable,
kindly help me in resolving the issue.
Thanks a lot in advance.
The custom utility used inside the Test2.sh will process the file in a batch of 10 lines at once and for efficient memory management, once first batch is completed, it will start a new process of the custom_utility to process the ne
Hi All,
Need a small help in writing a shell script which can delete a few lines from a file which is currently being used by another process.
File gets appended using tee -a command due to which its size is getting increased.
Contents like :
Code:
[INFO] 25/09/2012 05:18 Run ID:56579677-1
My requirement is to remove lines which are more than 1 month old...
Could some one tell me a single line command to feed my cmd input from a file and delete the same file while the command is still running?
EDIT: By single line command I meant, performing this entire action in one command. This behavior has got to do with executing processes and commands simultaneously.
hi,i am using ubuntu and generally use VI editor to write shell scripts. i am required to write a shell script to copy the text of one file(a text file) into another file.While the script executes, the shell shall ask the user to input the source filename and destination filename (both these files have been initially created by using "cat" command in the terminal).
If I use the bash shell cli and run some program which doesn't return immediately, then I input some letters (basically typing the next command before noticing the previous didn't finish) and the input always looks something like this (especially when using arrow up and down keys:)
]]A^ or ]]B^
And I wonder, is this kind of premature input 'harmful' in anyway, or what does the returned string m