Piping and Redirection

Redirection is (mostly) for files (you redirect streams to/from files). Piping is for processes: you pipe (redirect) streams from one process to another. Essentially what you really do is “connect” one standard stream (usually stdout) of one process to standard stream of another process (usually stdin) via pipe. Pipes have also the synchronization “side effect” … Read more

How to use pipe in ts not HTML

First import your pipe in component. And then use your pipe in your component. Like this.. pipe.ts /** * filter checkbox list */ @Pipe({ name: ‘filter’, pure: true }) export class FilterPipe{ transform(items: any[], args: any): any { let filter = args.toString(); if(filter !== undefined && filter.length !== null){ if(filter.length === 0 || items.length ===0){ … Read more

Why should you close a pipe in linux?

If you connect two processes – parent and child – using a pipe, you create the pipe before the fork. The fork makes the both processes have access to both ends of the pipe. This is not desirable. The reading side is supposed to learn that the writer has finished if it notices an EOF … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)