• "$ make check" is returning only FAILED for each check 2018-12-05

    I downloaded a .tar of source code to build into my user directory in cygwin. I then issued the following commands from Cygwin using the bash shell: ./configure make make check The make check program then proceeds to tell me that everything it checks

    Tags: linux, cygwin, gnu make
  • Read output from ttyUSB0 2018-12-04

    After installing one relay board in respberry pi I tested with success some commands to open and close the relays but I found one problem. I do not receive the status of the eight relays or the status of single relay. How can I fix this? The permissi

    Tags: linux, bash, raspberry pi, raspbian
  • Error running bash script in supervisor 2018-11-28

    I have a bash script that makes some work supervising network stuff, it works great when I run it manually, but when I put it in supervisor the ifs and the whiles does not work, just stops before any of those programming sentences, echos, running cat

    Tags: shell, linux, bash, debian, supervisor
  • C++ getenv doesnt update 2018-11-15

    I'm trying to make a program that a bash script runs. I want the bash script to be able to change the state of the c++ program, and the only thing I could find was to use environment variables. Thing is, its seems getenv only gets the value at the ti

    Tags: linux, bash, getenv
  • www-data user start session in dbus 2018-11-10

    Refering to this question I found out that the www-data user cannot write a session to the dbus under Ubuntu 14.04. How can I make the user be able to start such a session?

    Tags: linux, console, dbus, ubuntu 14.04
  • Configure httpd.conf to add new site on Apache Red Hat Linux

    Configure httpd.conf to add new site on Apache Red Hat Linux 2018-10-30

    I have linux server (Red Hat Enterprise Linux Server release 5.3 (Tikanga)) with apache installed. It is already used for browsing some documents. Now I would like to add a new Directory (with a html page), so whenever the directory is browsed it can

    Tags: linux, apache, httpd.conf
  • Wait for all processes reach some point in program, then resume 2018-10-22

    I have an application which creates many processes via fork(). At some point I want to pause them all and wait until all of them finish earlier tasks. Then start them all at once. for (int i = 0; i < N; i++) { if(fork() == 0) { //some operations here

    Tags: linux, fork, synchronization
  • Installing OpenSSH on Ubuntu 14.04 2018-10-15

    I'm trying to install openssh in Ubuntu 14.04. I downloaded the tar.gz file, unpacked it, and ran ./config. I got this error message: \*** Can't find recent OpenSSL libcrypto (see config.log for details) *** I looked online, and it was suggested that

    Tags: linux, ubuntu, openssh, openssl
  • python urllib3 pip install error linux 2018-09-25

    I am trying to install urllib3 using pip and get the error posted at the bottom of this message. I have wrestled with the issue for a few days days trying many things I have found online now without success, so I am finally posting here. Unfortunatel

    Tags: linux, python 2.7, failed installation, pip, urllib3
  • Running Local Script On SSH Server 2018-09-20

    I'm using Linux to log into a server using ssh. Once I'm logged in, I would like to execute a local Python script which uses netcat to run some program on the remote machine (it is therefore required to be logged in to access it). Locally I can type

    Tags: linux, bash, ssh
  • is ubuntu still installing im just getting the wallpaper

    is ubuntu still installing im just getting the wallpaper 2018-09-02

    I'm using VirtualBox and I'm trying to install Ubuntu 32 bit and after I get past the part of clicking installing and the message saying it will use the following partitions to install and I hit continue but now so far all I'm getting is the wallpape

    Tags: linux, ubuntu, virtualbox
  • pthread library manual and Is section 2 or section 7 of my Linux manual for POSIX API? 2018-08-26

    My current Linux is Ubuntu 14, but I can't find the pthread manual on it. I could find pthread_create on the man page (section 3), but not pthread_cond_t and pthread_mutex_t. I assume pthread is part of POSIX, so shouldn't it be part of my Linux manu

    Tags: linux, sockets, posix, network programming
  • linux cron truncate large file 2018-08-24

    I have a large csv file that I need to reduce to the last 1000 lines through a cron job every day. Can anyone suggest how to accomplish this? What I have so far are two commands but do not know how to combine them For deleting lines from the begginin

    Tags: linux, bash, csv, cron
  • How to use a command from awk in the right way 2018-08-23

    I have the next command : awk -v M="$variable" -v B=$"version"-v R="Pass ok" -v K="1" 'BEGIN {FS=","; OFS=","} $1==M {$14=R} {$3=B} {$23=K} {print}' file1.csv > file2.csv and i dont know why i

    Tags: linux, bash, awk
  • How to get device name of usb storage device? 2018-07-27

    As we know, currently on Ubuntu or lots of other Linux distributions, after an usb storage device is inserted, a /dev/sdX device will be created and the partitions will be automatically mounted. How can I know what is the correct X for this usb stora

    Tags: storage, linux, usb, device
  • Open multiple files and immediately accept the prompt 2018-06-28

    I'm trying to create an application using pygtk. In the application I'm downloading multiple files and opening them with another application. Each opening of file results in a prompt for confirmation to open the file. My goal is to make the confirmat

    Tags: windows, linux, python, file
  • Serial port over USB in Linux changes unexpectedly 2018-06-15

    I have a problem with a custom electronic device communicating with a workstation via RS232 on USB interface. As soon the device is connected, it receive, says, the address /dev/ttyUSB0, after some (random ) time of sending receive commands, the devi

    Tags: linux, java, centos, jssc
  • script doesn't start on boot with init 2018-05-31

    I have the following script #!/bin/sh # chkconfig: 345 99 01 # description: some startup script ### BEGIN INIT INFO # Provides: weblogic # Required-Start: $local_fs $network $remote_fs # Required-Stop: $local_fs $network $remote_fs # Default-Start: 2

    Tags: shell, linux, bash, init
  • How to automatically enter vim with tt and ? 2018-04-16

    I am using MacVim on Mac OS X. I want to know how to automatically input <leader>tt and <C-e> and <leader>u when I enter vim first time. --------------Solutions------------- You can use :normal (without the usual !, so that the mappings

    Tags: linux, vim, macvim
  • Linux CLI change price (awk or sed?) 2018-03-18

    I have price strings formatted as $25.00 in various html files. I would like to use the Linux command line (BASH, presumably with awk or sed) to increase each price by a certain dollar amount ($3 in this case). In short, I need to find $nn.00 and rep

    Tags: regex, linux, bash, awk, sed

Copyright (C), All Rights Reserved.

processed in 3.467 (s). 9 q(s)