Questions tagged [freebsd]

This tag should be used for question pertaining specifically to the FreeBSD operating system. In keeping with the intent of Stack Overflow, this is limited to programming, not such things as use, installation, configuration, or maintenance.

Such questions generally belong on Super User if related to personal/workstation use, or on Server Fault if related to use as a server.

See Also

2006 questions
33
votes
6 answers

Force a core to dump from an active, normally running program on FreeBSD

I'm writing error handling code for a server on FreeBSD. For extremely serious errors I want to avoid data corruption by immediately terminating. That's easy, exit(3). Before I exit, I output my relevant variables that led me there. However,…
Nektarios
  • 10,173
  • 8
  • 63
  • 93
32
votes
5 answers

Final output on slave pty is lost if it was not closed in parent. Why?

I wrote and maintain a program rlwrap that uses a pseudo-terminal to communicate with a child process. Pseudo-terminals (ptys) are found in all Unix(-like) systems, but they behave slightly differently on different platforms. Case in point: In…
Hans Lub
  • 5,513
  • 1
  • 23
  • 43
30
votes
12 answers

Table is 'read only'

When I want to execute an update query on my table I got an error saying: 1036 - Table data is read only. How can I fix that? Table attributes in /var/db/mysql are set to 777. 'Repair Table' function doesnt seems to help. Is there anything I can…
Cyclone
  • 14,839
  • 23
  • 82
  • 114
30
votes
2 answers

Emacs tab not working

I have installed Emacs on my FreeBSD 8.2 box. Everything works fine but I cannot use tabs. When I am editing a file with emacs and hit tab, nothing happens. What could be causing this?
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
30
votes
3 answers

PHP auto-prepend buggy after out of memory error

This may be better suited to server fault but I thought I'd ask here first. We have a file that is prepended to every PHP file on our servers using auto-prepend that contains a class called Bootstrap that we use for autoloading, environment…
jraede
  • 6,846
  • 5
  • 29
  • 32
29
votes
6 answers

Shell - one line query

I need to execute a mysql query in one line using bash. It should be something like this: mysql database --user='root' --password='my-password' < query.file But instead of the < query.file it would like to use a raw query like this: mysql database…
Cyclone
  • 14,839
  • 23
  • 82
  • 114
27
votes
6 answers

What is the equivalent of /proc/cpuinfo on FreeBSD v8.1?

What is the equivalent of Linux's /proc/cpuinfo on FreeBSD v8.1? My application reads /proc/cpuinfo and saves the information in the log file, what could I do to get similar information logged on FreeBSD? A sample /proc/cpuinfo looks like…
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
26
votes
4 answers

rpath=$ORIGIN not having desired effect?

I've got a binary "CeeloPartyServer" that needs to find libFoundation.so at runtime, on a FreeBSD machine. They're both in the same directory. I compile (on another platform, using a cross compiler) CeeloPartyServer using linker flag…
Nektarios
  • 10,173
  • 8
  • 63
  • 93
26
votes
6 answers

vim system register * and + not working

:echo has('clipboard') returns 1, but whenever I execute "+yy" or "*yy" nothing seems to be in those registers. If I use regular yy to copy another line of text, then try to paste from the register using CONTROL+V nothing happens. If I try "+p vim…
bvpx
  • 1,227
  • 2
  • 16
  • 33
25
votes
2 answers

Can FreeBSD be run inside Docker?

I have been looking for a Docker image of FreeBSD but cannot find, can FreeBSD be run inside docker? If not, why not?
Phil
  • 46,436
  • 33
  • 110
  • 175
24
votes
5 answers

Using a numbered file descriptor from Java

I need to access numbered file descriptors from Java -- other than 0, 1 or 2. How can this be done? I looked at the FileDescriptor class but did'nt find any way to initialize it with a given file descriptor number. As a concrete example lets…
Peer Stritzinger
  • 8,232
  • 2
  • 30
  • 43
22
votes
1 answer

Best practice to write logs in /var/log from a python script?

I want to write some log informations from a python's main script into a file in /var/log. When I call logger.info("Starting"), I get a PermissionError on the file, what is quite normal since files in /var/log belong to root and my program is not…
zezollo
  • 4,606
  • 5
  • 28
  • 59
22
votes
13 answers

How good is FreeBSD as a development platform?

I know that lots of web hosting providers are offering FreeBSD, but how good is FreeBSD as a development platform? Specifically, is Java 1.6 available in it? Is there somthing specific that it offers with regard to tools that is not available under…
Marko
  • 30,263
  • 18
  • 74
  • 108
22
votes
3 answers

emacs error 'ls does not support --dired'

Ever since upgrading to emacs 24.x I've been seeing this error whenever I open a directory. The entire error is: ls does not support --dired; see `dired-use-ls-dired' for more details. Looking at the variable, one finds: dired-use-ls-dired is a…
ericx
  • 835
  • 1
  • 10
  • 18
21
votes
2 answers

Using VisualVM to connect to a remote jstatd instance through a firewall

Possible Duplicate: VisualVM over ssh I'm writing this question and answering it because I spent a few hours getting this to work today and no answer I found on here worked for me. Hopefully this is helpful for others. If you have another…
Ben Baron
  • 14,496
  • 12
  • 55
  • 65