Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,427 of 68,980    |
|    Tom Del Rosso to All    |
|    Re: Output redirecting and piping    |
|    17 Jun 19 07:24:38    |
      From: fizzbintuesday@that-google-mail-domain.com              JJ wrote:       > On Sun, 16 Jun 2019 11:17:48 -0400, Tom Del Rosso wrote:       >>       >> The lines it misses are mingled with lines it sees       >       > Could you post the output when that happens?       > I want to see how messed up the output is.              No I didn't mean it comes out all at once. I meant I ran each one in a       separate command, taking every process name from tasklist and using it       as the parameter for the find command, like so:              for %%a in (all process names) do tasklist | find /i "%%a              The above shows one at a time, but FIND fails to see several, even       though they are not processes that stop and start, and they are at       various places in the list. Putting SORT in the middle makes FIND see       all of them.              Yet, if tasklist output is saved in a text file and then redirected to       FIND, all of them show up. So the text file shows nothing unexpected       but it also acts as expected. The direct pipe, which apparently       involves TASKLIST and FIND running together, doesn't work all the time.              Here's another one: It comes and goes. After a reboot, or just       restarting firefox, it might work, but right now the output is:              tasklist | find /i "firefox"       firefox.exe 3388 Console 0 490,348 K              tasklist | find /i "find"       find.exe 3148 Console 0 2,528 K              tasklist | find /i "fi"       NOTHING!!!              Then close and restart firefox, and this:              tasklist | find /i "fi"       firefox.exe 3868 Console 0 113,492 K       find.exe 364 Console 0 1,764 K              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca