4,247 reputation
612
bio website systemajik.com
location Gatineau, Canada
age 59
visits member for 3 years, 8 months
seen 21 hours ago
I have over 30 years experience in all phases of software development and delivery. I have administered a variety of midrange servers, and worked with systems from PCs to Mainframes.

Nov
13
comment Can I somehow add a “&& prog2” to an already running prog1?
There are a number of short forms for entering the PID of the backgrounded process such as %, %1 and $!. It is important to supply the PID or the second command will always run.
Nov
13
comment Can I somehow add a “&& prog2” to an already running prog1?
Waiting on the command should do the job.
Nov
11
comment Can I somehow add a “&& prog2” to an already running prog1?
@slm using wait as a solution.
Nov
11
comment Can I somehow add a “&& prog2” to an already running prog1?
@slm return status on the backgrounded command will only be available if no other command is run in the background after it. The variable containing the return status is not $?.
Nov
11
revised Can I somehow add a “&& prog2” to an already running prog1?
Add comment on entering command ahead of time.,
Nov
11
comment Can I somehow add a “&& prog2” to an already running prog1?
@slm From his request it seems the command is running in the foreground. If it had been backgrounded, then waiting on the proceess and checking its return status could be used. It would be easier to forground it.
Nov
11
comment Can I somehow add a “&& prog2” to an already running prog1?
@slm As long as the command is not reading stdin, the new command can be entered while the first command is running. The shell will read it as soon as the first command is done.
Nov
11
answered Can I somehow add a “&& prog2” to an already running prog1?
Nov
11
answered Is there a difference between ./script and bash script?
Nov
9
answered Pipe assigns variable
Nov
5
revised Does ntpd default allow query requests through?
Clarify
Nov
4
answered Does ntpd default allow query requests through?
Aug
21
revised How can I change the default gateway?
Comments on O/S varities.
Aug
21
answered How can I change the default gateway?
Aug
18
comment Why the non-root user can't login with a key in putty?
Also check the permissions on all directories in the path. They should be writable only by the owner.
Aug
17
answered Dovecot POP3S & IMAPS SSL Certificate that works for all user domains
Aug
9
comment How to ftp as root?
A safer option would be to use sftp witb a key file.
Aug
8
answered Rsync and take name/path changes into account
Aug
4
comment How to circumvent “Too many open files” in debian
Your patterns look like they will also pick up error logs as well as access logs. This should be a minor issue if you have a single error log. If you leave this running in a shell, you may want to use -F instead of -f so logs get reopened when rotated.
Aug
4
comment How to circumvent “Too many open files” in debian
Exceeding the file limit is often a sign of a problem. As already noted, you may have a problem with log rotation. (Rotated log may drop off your command.) Outside /var/log/apache2 there shouldn't be many (any) logs related to your Apache server. Based on your grep pattern, you likely want to restrict your access to access logs.