Reputation
4,872
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
8 14
Newest
 Enlightened
Impact
~575k people reached

  • 0 posts edited
  • 0 helpful flags
  • 39 votes cast
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.
Aug
1
answered binding ip address to hostname
Jul
23
comment Where can I find some good documentation for bash printf?
My basic expectation would be that it follows standard printf functionality from the c library. %s is string, %d is decimal, %f is floating point. As per the answer, it does with some extended capability.