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
0
votes
1 answer

How to view my timezone info

How would I view my timezone information for my computer? Doing cat on localtime gives me compiled data or something. Here's an example: $ cat…
David542
  • 104,438
  • 178
  • 489
  • 842
0
votes
1 answer

FreeBSD make creates obj directory

Under FreeBSD, for some odd reason every time I execute a simple Makefile, it tries to create an obj directory under the current PWD. I thought it might have to do with the default .OBJDIR for FreeBSD make, but setting .OBJDIR: ./ does not change…
Mahmoud Al-Qudsi
  • 28,357
  • 12
  • 85
  • 125
0
votes
0 answers

How to complie lkl/linux on freebsd

When I complie lkl/linux on freebsd 11.1, I got this error: stat: illegal option -- c usage: stat [-FLnq] [-f format | -l | -r | -s | -x] [-t timefmt] [file|handle ...] gmake[1]: *** [Makefile:984: vmlinux] Error 1 gmake: *** [Makefile:148:…
ccc1924
  • 1
  • 1
0
votes
1 answer

Make starts in wrong directory under FreeBSD

I have a very simple Makefile that just shells out to another Makefile: all: cd src && make all My directory structure (the Makefile is in the top-level directory): [I] mqudsi@php ~/bbcp> tree -d . ├── bin │   └── FreeBSD ├── obj │   └──…
Mahmoud Al-Qudsi
  • 28,357
  • 12
  • 85
  • 125
0
votes
2 answers

Cannot update FreeBSD Freshports Plexpass

I used to update my port of plexpass in FreeBSD by stopping my jail, and entering the following: pkg update && pkg upgrade portsnap fetch update pkg upgrade plexmediaserver-plexpass pkg install plexmediaserver-plexpass This use to work just fine,…
0
votes
1 answer

on FreeBSD, how to exit from Gnome Session to Pure terminal mode

on FreeBSD, how to exit from Gnome Session to Pure terminal mode. Thanks!
Josh Morrison
  • 7,488
  • 25
  • 67
  • 86
0
votes
2 answers

Prevent a nodejs application from exiting

I've got a cli application written in nodejs using vorpal , live in a freebsd (v9.3), I need to know is there any way to prevent the user from exiting this app or not! I want it like when the application has started , it will never exit until reboot…
Omid Navy
  • 272
  • 2
  • 12
0
votes
1 answer

FreeBSD nginx.pid Permission Denied

Fresh install of nginx on FreeBSD 11.0_RELEASE. Default nginx.conf with one mod to comment out the pid. See the conf below. The error: nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok nginx: [emerg] open()…
Rich_F
  • 1,830
  • 3
  • 24
  • 45
0
votes
0 answers

PHP Bcompiled code doesn't work in different Linux versions

I have been using PECL bcompiler extension for a long time. All is good. However, I have found that the moving the working script to another linux system (CentOS -> FreeBSD) causes a problem with include of the bcompiled program part to the basic…
0
votes
1 answer

save output of command in array

I'm using FreeBSD server, where is no bash, how can I save command in an array? Ive got command, which works grep '" | cut -f1 -d"<" Im trying to save variables in from xml file. XML file…
Haniku
  • 671
  • 1
  • 7
  • 16
0
votes
1 answer

C Sharedmemory only 1024 int in forked process

i should write an program that write integers into a shared memory, fork a childprocess and the childprocess should read the integers. shm.c #define N_SHARED 2000 int main(int argc, char **argv) { /* Ein Shared-Memory-Segment einrichten */ shmid =…
Ezak
  • 137
  • 1
  • 3
  • 14
0
votes
1 answer

Mode parameter in chmod?

I'm trying to figure out what the mode parameter of setfmode() which is called eventually by chmod() is. When I print it out and do something like chmod +t test.txt "33700" gets printed out. When I do chmod +w test.txt "33252" gets printed out. Is…
MarksCode
  • 8,074
  • 15
  • 64
  • 133
0
votes
0 answers

ejabberd application controller syntax error before log_rotate_size

I manage to compile ejabberd 17-01 from source on FreeBSD 11 (guest on Mac's VirtualBox) as "root". So I login as "ejabberd" and try to run "ejabberdctl foreground". Then, I got the following error: ejabberd application controller syntax error…
0x75aaa
  • 45
  • 6
0
votes
1 answer

FreeBSD install ejabberd from source missing yaml.h

I understand that in order to develop ejabberd module I must be able to compile it from the source. I have FreeBSD 11.0-RELEASE-p9, as a guest OS on a VirtualBox. So the followings are my attempts. Using git, I clone the source to…
0x75aaa
  • 45
  • 6
0
votes
1 answer

how to determine the the execution time, CPU and memory utilization of a shell script(test.sh)?

I need to know the complete execution time, CPU and memory utilization of a shell script that I have written. I want to execute the commands that outputs the CPU and memory utilization from the same script. I am more interested in real time CPU…
Abhishek
  • 73
  • 1
  • 8