On Linux, the readlink utility accepts an option -f that follows additional links. This doesn't seem to work on Mac and possibly BSD based systems. What would the equivalent be?
Here's some debug information:
$ which readlink; readlink -f
/usr/bin/readlink
readlink: illegal option -f
usage: readlink [-n] [file ...]
...
While testing Pythons time.clock() function on FreeBSD I've noticed it always returns the same value, around 0.156
The time.time() function works properly but I need a something with a slightly higher resolution.
Does anyone the C function it's bound to and if there is an alternative high resolution timer?
I'm not profiling so the Tim...
I am running a FreeBSD server and I have been sent a warning that spam has been sent from my server. I do not have it set as an open relay and I have customized the sendmail configuration. I'd like to know who is sending what email along with their username, email subject line as well as a summary of how much mail they have been sending....
Hi guys!
What is the best OS for Ruby on Rails deploying? I've seen a lots of articles about Rails+Ubuntu, but what about FreeBSD? Are there any comparison tests for FreeBSD and Ubuntu. Which OS is the best in performance sense?
Thanks.
...
I'm having a weird problem with some python processes running using a watchdog process.
The watchdog process is written in python and is the parent, and has a function called *start_child(name)* which uses subprocess.Popen to open the child process. The Popen object is recorded so that the watchdog can monitor the process using poll() a...
I have the pid of a running process in freebsd.
How do I obtain its current directory?
...
In my app I need to watch a directory for new files. The amount of traffic is very large and there are going to be a minimum of hundreds of new files per second appearing. Currently I'm using a busy loop with this kind of idea:
while True:
time.sleep(0.2)
if len(os.listdir('.')) > 0:
# do stuff
After running profiling I'm seei...
Server Details:
FreeBSD
PHP Version 4.3.11
Apache
Appache Modules:
mod_throttle, mod_php4, mod_speedycgi, mod_ssl, mod_setenvif, mod_so, mod_unique_id, mod_headers, mod_expires, mod_auth_db, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_actions, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod...
How do I setup a linode to run FreeBSD? There is an example for NetBSD and references to successful attempts at getting FreeBSD to run but no actual document I can find.
...
What code libraries are there to rip audio CDs (e.g. DAE, Digital Audio Extraction)? Must be suitable for commerical use (e.g., no GPL) Preferably free. Linux or FreeBSD or Windows. Most interested in libraries that run on unix-like OS's, especially FreeBSD.
...
Hello!
I'm in a FreeBSD-environment where we have one server that acts as a file-server. Now we have a problem that our SYS-admin says can not be fixed.
All or files resides in a folder and we all have access to that folder and its subfolders and files. The problem is that once I,or another user in our group, creates a file or folder ...
I've just installed pfSense (a FreeBSD distro) and I'm having problems with my Ethernet adapters - I seem to be able to get it into a state where I cannot ping any machine despite the ARP tables etc... all being correct (On the machine I'm pinging I can see the packets arrive and the response sent in Wireshark, but the remote machine get...
Our website relies on images from one of our manufacturers. The image directories are massive and getting them via FTP is an all day job. Now that we've downloaded the entire directory, we'd like to be able to periodically download files and directories that are new, or have been changed since the last time we downloaded them. We're t...
To learn a bit more about FreeBSD and *nix systems in general, I'm starting to look at the binaries from the DEFCON 17 Capture The Flag game. Right now, I'm reversing the tucod binary. Here's some possibly useful information on tucod:
tucod: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.2, dynamically link...
Hi I currently have subversion set up on my freebsd machine. It its linked with the svn user account. However in an attempt to solve issues of maintaining permissions when checkingout / updating I wish subversion to run as www - so the folders are owned by www.
I have found a config file at /root/.subversion.config however Im unsure wha...
Hi Im using subversion on a freebsd machine.
With a project I have a couple of directories such as cache and a tmp folder used by Smarty. How do I exclude these folders from being committed ever?
Also .project files from Eclipse is always added to the list to be commited. Can I also ignore that?
Thanks.
...
This is weird and I'm not sure who the culprit really is.
I'm doing some scripting, on FreeBSD (6.2)? which makes extensive use of the following bashism:
do_something <(mysql --skip-column-names -B -e 'select ... from ... where ...;')
... where "do_something is a somewhat crufty utility (in Perl) that won't read from a pipeline. If ...
I'm trying to find where two variables are being concatenated in a directory of scripts, but when I try the following:
grep -lire "$DATA_PATH . $AWARDS_YEAR" *
I get "undefined variable" errors...
I thought I could escape the $s by using:
grep -lire "\$DATA_PATH . \$AWARDS_YEAR" *
But I get the same error - so, how do you grep for...
The solution in
http://stackoverflow.com/questions/1272357/how-to-compile-a-32-bit-binary-on-a-64-bit-linux-machine-with-gcc-cmake
is not possible because i use 3rd party software and other stuff which is using the CFLAGS variable already. And patching their makefiles is not allowed - says my boss.
So i have to find another way to enf...
I have my PHP files stored under FreeBSD under this directory:
/home/david/public_html/code/php
In my browser, I access them through this URL:
http://192.168.6.7/~david/code/php
And I have an htaccess file to rewrite URLs:
RewriteEngine on
RewriteRule ^test test.php
But when I go to http://192.168.6.7/~david/code/php/test in my ...