Reputation
569
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 6
Newest
 Caucus
Impact
~15k people reached

  • 0 posts edited
  • 0 helpful flags
  • 38 votes cast
Jul
29
comment How to send the Escape Key inside VirtualBox “vi” session?
Try esc then <ctrl>] ? You have a file .exrc or .vimrc that can be used to customize these commands.
Jul
29
comment trying to connect SFTP upload with to keep my files syncronized
Please show us an example of: "SFTPupload extension from brackets". "it doesn't work" will not help us answer your question. Give us the error or the exact failure. Both would be nice if there is an error.
Nov
13
comment Filenames with illegal characters
Your problem seems to be locale based. The actual origin locale used to write the file may have been something different from what you have set now. Discussed from a programming POV here: codesnipers.com/?q=node/68
Nov
11
comment Where is “unix:abstract=/tmp/dbus-KtyPDgWNin” socket file saved?
If you know the socket (like 42133) try the netstat -a command. Those sockets you are talking about are UNIX domain sockets. netstat will show more information, if the socket is persistent. Unix domain sockets usually have the socket number as part of the name: the uzposs1 process has this domain socket: uzposs1.unixstr10002
Nov
8
comment What could cause out_of_memory & __alloc_pages
what does your syslog have to say?
Nov
8
comment Disable swapping out of readonly pages etc. on linux?
I do this for a living - I find your approach to be kinda unorthodox. If you are (for example) running physics models for your own research -- This approach is cool. If this is some kind of production box, not cool. On production systems you have to find the root cause/process and remediate it, even if it means recoding/refactoring something. I have gone to isolating processes into their own virtual machine to watch them in isolation.
Nov
8
comment Apache cannot write to directory
I don't know but I am guessing that the file context for the directory /www and /var directories does not allow httpd_t. Consider fixing that rather than something else. sestatus -v will show you why ssh does not work: check the /usr/sbin/sshd line. Disabling selinux on an internet facing server is not a great idea anyway.
Nov
8
comment Why creating a process is a two-step process (fork-exec)?
Does he mention CLOSE ON EXEC? There are file descriptor attributes that dictate whether or not a file descriptor persists across an exec. So if a descriptor will close you may need to do something with it, like call ioctl(), fcntl() to change attributes.
Oct
31
comment Monitor disk I/O used by specific command
Dtrace scripts are a possible choice. iosnoop is one for example, that can monitor disk I/O on a per pid basis or per disk basis. Dtrace is available for OSX, some Linux platforms and Solaris.
Dec
25
comment My group (according to /bin/id) has rw access to a Char device but access is denied
Have you tried the newgrp graphics command to change your default group?
Oct
9
comment crontab does not lauch
cron jobs do not normally have a /dev/tty, a controlling terminal. That is the error you are seeing. Chris gave you a link to the answer. +1
Aug
7
comment SSH private Keys
Are you counting the contents of ./ssh/authorized_keys? Those are public keys.
May
28
comment profiling file reading speed via /dev/null?
I would look at your /src/myprogram rather than bash not doing what you think it is doing. /dev/null is a kernel device, I/O to it is as fast as I/O can get on your system. Please post your code if you want help.
May
16
comment How to solve “the system is running in low graphics mode” in ubuntu 12.04?
This really belongs on superuser or serverfault. It is not a programming question.
May
1
comment Find recursively a directory and remove it
The original did not have echo. FWIW.
Apr
27
comment one sudo for multiple terminals
@chepner - I do not see how that could happen, unless the user entered directly went into a child process that somehow became a session leader, as in daemonizing.
Apr
15
comment Modifying /etc/hosts Causing internet problems
Do you control your DNS? Can you you not create aliases there?
Apr
1
comment Is my UNIX command du failing?
. == all of the current directory + hidden files or directories.
Mar
2
comment how to change the maximum number of fork process by user in linux
@vonbrand - absolutely. You should post this as the answer with possible things to check. +1
Feb
14
comment What method executes on bash exit via CTRL-D?
NOTE: returning weird characters on exit instead of numbers may result in some other scripts failing when they are not supposed to. exit [number] makes the return value available to the parent. The parent calls wait or waitpid to interpret the result of the child process's exit. This interpretation is based on the lowest eight bits of the return value. exit 0 is success, exit non-zero is considered some kind of failure. Or possibly a warning.