Reputation
7,974
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
14 28
Newest
 bash
Impact
~705k people reached

Apr
21
comment How can I make the linux time function prefix the output of a command insteading of placing the output after the command?
That's more complicated, as the macro doesn't have ready access to the filename you want to echo; you need to replace the make pattern rules. See gnu.org/software/make/manual/make.html#Pattern-Rules for gmake; it's similar for other versions of make although specific details will differ.
Apr
21
comment How can I make the linux time function prefix the output of a command insteading of placing the output after the command?
That's actually a rather different question, as g++ will send any output (since it only produces output on error) to stderr. It's complex enough that you would want to use a wrapper script. Also, are you thinking of wrapping the (normally nonexistent) output from g++, or the echoed command from make? The latter can't easily be done while echoing the actual command.
Apr
20
comment Mount NFS on a MAC : Could not parse file system specification
I had to use insecure in the export options here because the mount request doesn't come from a (not-really-)"secure" port (defined as one < 1024, which Unixes only allow root to bind() — no such restriction exists on Windows, which makes it largely historical and pointless).
Apr
20
answered Mount NFS on a MAC : Could not parse file system specification
Apr
20
answered How can I make the linux time function prefix the output of a command insteading of placing the output after the command?
Apr
20
comment ShellScript:dialog inputbox
Ah, ok. I wondered if I should comment on that; it is somewhat tricky.
Apr
20
comment ShellScript:dialog inputbox
sigh What you're trying to do is difficult (really, I'm serious about using zenity instead) because of needing to force stuff through the extra xterm; any problems with the command etc. are going to be lost when the xterm goes away. (Maybe try adding -hold.) Look in /tmp to see if you have some other /tmp/input.* files sitting around, is all I can think of.
Apr
20
answered ShellScript:dialog inputbox
Apr
19
answered Search for files and print their full path
Apr
16
comment sound detection accessing device node directly
@cdaaawg, it does, at some default format/bit rate that you cannot control, and using that audio as a trigger (as per the OP's question) would be difficult from the shell.
Apr
15
answered mkdir: cannot create directory 'usb': No such file or directory
Apr
15
answered sound detection accessing device node directly
Apr
14
answered Why does HP Update at remote system trigger RDP printing at local system?
Apr
13
answered Change keyboard mapping (Input Source) from terminal in OS X
Apr
13
comment How Can I Create A Dump File of Running Process in Linux
By reading it? I can't run the command for you...
Apr
13
comment How Can I Create A Dump File of Running Process in Linux
lehman.cuny.edu/cgi-bin/man-cgi?gcore or install it using your system's package manager and do man gcore.
Apr
13
answered How Can I Create A Dump File of Running Process in Linux
Apr
13
comment When/Why do you use mount -a over auto?
I would not advise doing it when the system is already booted, because while the system should catch you trying to mount / a second time, sometimes things go wrong. Trying to use it for removable media has the opposite problem: the system will want that media to be present at boot time. "it is run at boot time" means exactly what it says, any filesystem marked auto will be mounted at boot time, including removable media. It will also be marked as system-mounted, not user-mounted, meaning your USB key (if it was plugged in) can only be umounted by root.
Apr
13
comment When/Why do you use mount -a over auto?
The point is that mount -a is run at boot time, so whatever else you might want to do with it, you must expect that it will also happen at boot. This is why you should probably not try to use it yourself. And I said specific filesystem types, not specific filesystems: this means filesystems whose fstype field is nfs or ext2 or etc.
Apr
13
comment When/Why do you use mount -a over auto?
You can use -a with specific filesystem types, but you'd have to distinguish then between mount at boot and your possible use. Don't try to use -a for your own uses; consider it part of the OS scaffolding.