|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi folks,
I am periodically logging the output of ps aux to a file and I want to tack on a couple newlines but I can't get the command phrased correctly. I have tried various ways but most recently: /bin/cat /bin/ps aux "\n\n" >> /home/foo/ps.log Also tried bin/cat | /bin/ps aux . "\n\n" >> /home/nolaflash/ps.log How is this done correctlty? TIA! JG |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
David Martin, NolaFlash.com wrote:
> Hi folks, > > I am periodically logging the output of ps aux to a file and I want to > tack on a couple newlines but I can't get the command phrased > correctly. > > I have tried various ways but most recently: > > /bin/cat /bin/ps aux "\n\n" >> /home/foo/ps.log > > Also tried > > bin/cat | /bin/ps aux . "\n\n" >> /home/nolaflash/ps.log > > How is this done correctlty? One possibility... { /bin/ps aux ; echo ; echo ; } >> /home/nolaflash/ps.log Janis > > TIA! > > JG |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Mar 23, 7:14 pm, Janis Papanagnou <Janis_Papanag...@hotmail.com>
wrote: > David Martin, NolaFlash.com wrote: > > Hi folks, > > > I am periodically logging the output of ps aux to a file and I want to > > tack on a couple newlines but I can't get the command phrased > > correctly. > > > I have tried various ways but most recently: > > > /bin/cat /bin/ps aux "\n\n" >> /home/foo/ps.log > > > Also tried > > > bin/cat | /bin/ps aux . "\n\n" >> /home/nolaflash/ps.log > > > How is this done correctlty? > > One possibility... > > { /bin/ps aux ; echo ; echo ; } >> /home/nolaflash/ps.log > > Janis > > > > > TIA! > > > JG Thanks! jg |
|
![]() |
| Outils de la discussion | |
|
|