Reputation
469
Top tag
Next privilege 500 Rep.
Access review queues
Badges
6 9
Newest
 Enlightened
Impact
~27k people reached

  • 0 posts edited
  • 0 helpful flags
  • 6 votes cast
May
10
comment Mouse wheel scroll causes zoom in/out in Google Chrome
likely duplicate (or, at least, similar solutions) superuser.com/questions/243127/…
May
4
comment Disable OS X Server's shutdown prompt?
@adib one step at a time :-) once you have an script (a set of steps) that accomplishes what you want to do, you can execute it without a terminal. You can run osascript without using a terminal; see superuser.com/questions/360247/…
May
3
answered shift all running process from user1 to user2
May
3
comment Disable OS X Server's shutdown prompt?
When you say "I try to shut down as a local interactive user" , I assume you mean via the graphical user interface, and not via the command line? If so, does the dialog disappear if you modify your user (the one you're logged in as) to be an administrative user? (I assume you're not ("logs in to a non-privileged account" ... and perhaps don't want this, "to make it convenient...") The other option is to go down to the command line (open Terminal); e.g., see apple.stackexchange.com/questions/103571/…
May
3
comment Given key-value content, how do I group values by key and sort by value?
Assuming the initial key sort (sort -k1,1 -k2) which also would result in sorted values (so you could just sort without any -k option), then the problem is simplified to merging lines with the same prefix; see unix.stackexchange.com/questions/47786/…
May
3
answered How To Quickly Switch Paths (in Bash)
May
3
comment Copying Unix Executable File content from file to file
The key phrase here is: "I copy this file exactly as is using a text editor." ...yeah, that's not going to work. Now, if you used a binary editor, that's another kettle of fish altogether.
May
3
comment How to print new line character with echo?
the preferred solution is just to use printf "...\n" instead of echo.
May
3
comment How to print new line character with echo?
btw, this "echo -e ..." relies on bash's echo to work correctly (e.g., dash will just print the "-e"); but '/bin/echo' may (or may not) also work. Unfortunately (perhaps appropriately), there are a lot of echo's around, and you don't really want to care about which one you're going to get. Using 'printf "....\n" is a more portable option across env's and shells.
May
3
comment Why does bash need && to echo a variable on one line?
following up on spiff's (correct) comment; this answer does not address the main point of the question, which centers on the syntax: X=1 command arg1 arg2, which is perfectly valid way to pass env vars into command. But only insofar as 'X' is used inside command, e.g., X=foo; echo "begin X=$X"; X=bar echo "now X=$X"; echo "end X=$X" will always print X=foo. But if you have: X=bar ./command.sh (and command.sh prints $X), then inside the shell script, X=bar; after the shell script, X=foo once again.
May
3
comment Why does bash need && to echo a variable on one line?
technically, "echo 1" returns 0, and the output is 1... that is to say, "echo" exits with status "0", and displays to stdout the arguments. The phrasing "returns 1" to me was implying "exit staus", not "outputs", and was a bit confusing at first glance.
Apr
23
awarded  Enlightened
Apr
23
awarded  Nice Answer
Dec
9
awarded  Yearling
Oct
12
comment Cronjob etiquette?
If you tried doing this on any well-maintained server (e.g., consider google.com), you'll get a captcha or simply be blocked from access for crossing some unknown, invisible line. (If you've ever restored your browser with 50+ tabs open with google queries, you know what I mean.)
Oct
12
comment Cronjob etiquette?
@Mario RSS is designed exactly for what is being asked. One should at least check to see if the option is available. (And, we're talking about the impact on the server, not effort on the client. Nonetheless, an aggregator/reader is a lot simpler to use than setting up a cronjob to send out email.) For a server, polling via http (or push notifications) does not scale. To call it "an alternative representation" is an understatement; RSS/ATOM allows for alternate, scalable architectures. Changes can be published to a syndication server; and clients can easily monitor using readers (like email).
Oct
11
comment Cant disable password complexity windows 8.1 home
obligatory xkcd => xkcd.com/936
Oct
11
answered How to create unified, virtualized, triple boot system (Windows, Mac, Linux)
Oct
11
comment Cronjob etiquette?
Ideally, the newsletter / website would have an RSS (or atom/etc) feed, so that you don't have to "poll", but can rather "subscribe" to updates. (Look for a rss or atom icon on their site.) In the absence of a good host, clients can't be faulted for lapses in etiquette. (It's nice of you to ask, though.)
Sep
24
awarded  Autobiographer