-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am trying to amend the macro below to accept a macro parameter as the 'location' argument for a dir command. However I cannot get it to resolve correctly due to the nested quotes issue. Using %str(%') does not work, neither do quoting functions for some reason.
The macro will work fine when the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there a filter which I could use to rate-limit a pipe on linux? If this exists, let call it rate-limit, I want to be able to type in a terminal something like
cat /dev/urandom | rate-limit 3 -k | foo
in order to send a a stream of random bytes to foo's standard input at a rate (lower than) 3…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When reading about pipes in Advanced Programming in the UNIX Environment, I noticed that after a fork that the parent can close() the read end of a pipe and it doesn't close the read end for the child. When a process forks, does its file descriptors get retained? What I mean by this is that before…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
For example,
Say I want to list the contents of a folder and directly paste them into a chat window for a friend to see.
I realize I could do ls > filename.txt to create a file (filename.txt) with those contents; I'd then have to open or print the file and manually select and copy the text…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I try upgrading and this is what I get:
christopher@chris-computer:~$ sudo apt-get upgrade
[sudo] password for christopher:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
librhythmbox-core7
1 upgraded, 0…
>>> More