Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Bookmarks inbookmarks:mine
inbookmarks:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results found
Search options user 63502
3
votes
I use the following in my .bash_profile: # if not running screen, attached to a terminal and is myusername (not run through sudo) if [ -z "${STY}" -a -t 0 -a X${USER} = Xmyusername ]; then # func …
answered Jan 2 '12 by Arcege
0
votes
Generally use one of the :map command to bind a key to a command. :map Q :ConqueTerm python -i %^V^M You can use anything in place of Q, which is similar to the : command. From the VIM help text: …
answered Jan 9 '12 by Arcege
0
votes
Based on the process listing, you got into a subshell. If you type exit in the shell you were first in, then you should get back to the vi session. Then you can either continue editing in vi or exit …
answered Feb 29 '12 by Arcege
2
votes
I assume that you want the date to be changed inline, printing the rest of the line as well. Try replacing field 1 with the output of strftime(). $ echo "1234218770.7644 INFO etc' | awk '{$1=strftim …
answered Dec 18 '11 by Arcege
1
vote
There is no correlation between screen and a windowing environment ("window manager"). No matter what form of windowing manager you run, you can still run screen. The question then becomes what lose …
answered Jan 9 '12 by Arcege
2
votes
I'd say 'good luck'. From what I remember, and what I just tried, emacs does not handle full terminal support under the shell command. For example, in an emacs shell, I try: $ less /etc/hosts WARNI …
answered May 15 '12 by Arcege
2
votes
Look under the windows command in the documentation and you'll see: The current window is marked with a `*'; the previous window is marked with a `-'; all the windows that are logged in are marked …
answered May 28 '12 by Arcege
5
votes
Try: $ ps axno user,tty | awk '$1 >= 1000 && $1 < 65530 && $2 != "?"' | sort -u This should tell you all UIDs with processes with a session terminal (like a window in screen). I use the UID to be …
answered Nov 1 '11 by Arcege
1
vote
The better rationale is that there is really only one 'success', but there are multiple reasons for a 'failure': file not found, argument error, computational error, etc. This was a convention of the …
answered Apr 30 '12 by Arcege
1
vote
I'd suggest running the filenames through a short sed script. for file in dir/with/files/*; do name=$(basename "$file" | sed 's/\./ /g;s/\([12][09][0-9][0-9]\)/(\1)/'); mv "$file" "$(dirname \"$file\" …
answered Jan 30 '11 by Arcege
2
votes
It's not that hard. First you need to know what you want to start, let's say five gnome-terminal instances, and then set it up in your windowing system to have an icon to click on to start the progra …
answered Jan 4 '12 by Arcege
0
votes
This seems to do what you want: find dir-a dir-b -type d ! -name dir-a ! -name dir-b -prune -o -name file-a -print Here is a break down: -type d ! -name dir-a ! -name dir-b -prune Any directory …
answered Sep 15 '11 by Arcege
6
votes
If you want to deny access to for all users, then you might want to remove the setgid bit on /usr/bin/wall: $ ls -l /usr/bin/wall -rwxr-sr-x 1 root tty 13884 2011-08-09 12:15 /usr/bin/wall $ sudo chm …
answered Jan 2 '12 by Arcege
1
vote
If you have the scripts, then you can do that. But screen by itself does not have hooks to be called on reattach or detach. There is no event handler system accessible to the user. However for deta …
answered Oct 9 '11 by Arcege
0
votes
I don't think that you can do this in one command, but this should do what you want: screen -ls cron | grep -q '(\w*tached)' >&- || screen -dmS cron screen -S cron -X screen ping example.com
answered Sep 5 '11 by Arcege

15 30 50 per page