Posts

Showing posts with the label linux

Docker File Non-Zero Code 100 Error When Building

Docker File Non-Zero Code 100 Error When Building Here is my Docker File: FROM ubuntu:16.04 MAINTAINER Alexandre Savio <alexsavio@gmail.com> RUN ln -snf /bin/bash /bin/sh ARG DEBIAN_FRONTEND=noninteractive ENV PETPVC_VERSION v1.2.1 ENV PETPVC_GIT https://github.com/UCL/PETPVC.git ENV ITK_VERSION v4.12.2 ENV ITK_GIT http://itk.org/ITK.git ENV VTK_VERSION v6.3.0 ENV VTK_GIT https://gitlab.kitware.com/vtk/vtk.git ENV SIMPLEITK_VERSION v1.0.1 ENV SIMPLEITK_GIT http://itk.org/SimpleITK.git ENV ANTS_VERSION v2.2.0 ENV ANTS_GIT https://github.com/stnava/ANTs.gi ENV NEURODEBIAN_URL http://neuro.debian.net/lists/xenial.de-m.full ENV NEURODEBIAN_PGP hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9 ENV LIBXP_URL http://mirrors.kernel.org/ubuntu/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb ENV AFNI_URL https://afni.nimh.nih.gov/pub/dist/bin/linux_fedora_21_64/@update.afni.binaries ENV CAMINO_GIT git://git.code.sf.net/p/camino/code ENV SPM12_URL http://www.fil.ion.ucl.ac.uk/spm/download/...

Jenkins run up an Amazon EC2 Linux Ubuntu instance failing

Jenkins run up an Amazon EC2 Linux Ubuntu instance failing I have configured and tried to run Jenkins System Configuration from AWS windows system: It is failed and thrown the fallowing error. I insalled manually Java 1.7 Jun 29, 2018 6:22:29 PM null FINEST: Node RocketChat-Server (i-034fb93609641e1b1)(i-034fb93609641e1b1) is still pending/launching, waiting 5s Jun 29, 2018 6:22:35 PM null FINEST: Node RocketChat-Server (i-034fb93609641e1b1)(i-034fb93609641e1b1) is still pending/launching, waiting 5s Jun 29, 2018 6:22:40 PM null FINEST: Node RocketChat-Server (i-034fb93609641e1b1)(i-034fb93609641e1b1) is still pending/launching, waiting 5s Jun 29, 2018 6:22:45 PM null FINEST: Node RocketChat-Server (i-034fb93609641e1b1)(i-034fb93609641e1b1) is still pending/launching, waiting 5s Jun 29, 2018 6:22:50 PM null FINER: Node RocketChat-Server (i-034fb93609641e1b1)(i-034fb93609641e1b1) is ready Jun 29, 2018 6:22:50 PM null INFO: Launching instance: i-034fb93609641e1b1 Jun 29, 2018 6:22:50 PM ...

How to get recursively dependencies for package with versions? [on hold]

How to get recursively dependencies for package with versions? [on hold] I need to install a package on a system without internet access (the package contains a driver for network card). System A has internet connection and runs Ubuntu 14; System B has no internet connection and runs Ubuntu 16. How can I download all dependencies recursively with the correct version on system A, that could be next installed on system B? This question appears to be off-topic. The users who voted to close gave this specific reason: Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See What topics can I ask about here in the Help Center. Perhaps Super User or Unix & Linux Stack Exchange would be a better place to ask. – jww Jun 29 at 18:54 ...

Reformat data using awk

Reformat data using awk I have a dataset that contains rows of UUIDs followed by locations and transaction IDs. The UUIDs are separated by a semi-colon (';') and the transactions are separated by tabs, like the following: 01234;LOC_1=ABC LOC_1=BCD LOC_2=CDE 56789;LOC_2=DEF LOC_3=EFG I know all of the location codes in advance. What I want to do is transform this data into a format I can load into SQL/Postgres for analysis, like this: 01234;LOC_1=ABC 01234;LOC_1=BCD 01234;LOC_2=CDE 56789;LOC_2=DEF 56789;LOC_3=EFG I'm pretty sure I can do this easily using awk (or similar) by looking up location IDs from a file (ex. LOC_1) and matching any instance of the location ID and printing that out next to the UUID. I haven't been able to get it right yet, and any help is much appreciated! My locations file is named location and my dataset is data . Note that I can edit the original file or write the results to a new file, either is fine. location data ...

Unable to send mails from server getting error Our system has detected that this message is 550-5.7.1 likely unsolicited mail

Image
Unable to send mails from server getting error Our system has detected that this message is 550-5.7.1 likely unsolicited mail Getting "Our system has detected that this message is 550-5.7.1 likely unsolicited mail.To reduce the amount of spam sent to Gmail, 550-5.7.1 this message has been blocked.",connection timed out, delivery temporary suspended error message while sending to gmail users. mails are being delayed on other email users as well. can any one please guide me on this. /var/log/maillog image which shows error: Are these account level emails or newsletter type things? – castis Jun 29 at 12:57 Do you have an SPF Record set up? What about DKIM? Are you using authenticated SMTP? Are you sending spam ? – Mr Glass Jun 29 at 12:57 ...

Can't get result from grep in bash loop

Can't get result from grep in bash loop I'm trying to get info from log files using grep + tail -1: #!/bin/bash # declare an array called array and define 3 vales array=( 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ) array2=( 00 30 ) for i in "${array[@]}" do for j in "${array2[@]}" do output=$(grep filtered /home/pavel/hasoffers_api/logs/tabatoo2_20180627$i$j* | tail -1) echo /home/pavel/hasoffers_api/logs/tabatoo2_20180627$i$j* echo "$output" done done this outputs just empty string, but I definitely know that phrase "filtered" is in the logs. What can be the problem? I tried several variations of the same script but it just returns empty string. Thanks! I think the script looks ok. The only explanation I see is that the string "filtered" is not in the logs or there's no files named ".../t...

Processing wrong values of MIB OID objects by SNMP agent

Processing wrong values of MIB OID objects by SNMP agent How to make the SNMP agent ignore wrong or inconsistent value of supported generic MIB OID objects, and move ahead, not stumbling on them? Currently, the SNMP agent stumbles on errors in supported MIB OID objects, can't process and reject the configuration file. Although this behavior fully conform to DOCSIS 3.0 specification. But this behavior varies depending on the vendor. (means there is an option to make error processing less strict). 8.2.4.2 CM configuration TLV-11 elements not supported by the CM If any CM configuration file TLV-11 elements translate to SNMP MIB OIDs that are not MIB OID elements supported by the CM, then the CM MUST ignore those SNMP varbinds, and treat them as if they had not been present, for the purpose of CM configuration. This means that the CM will ignore SNMP MIB OIDs for other vendor's private MIBs as well as standard MIB elements that the CM does not support." ... If any CM configur...

Object file is 2.5x larger on linux than on macOS or Windows

Object file is 2.5x larger on linux than on macOS or Windows I have a file which, when compiled to object file, has the following size: The file (detailed below) is a representation of (a part of) a unicode table along with character properties. The encoding is utf8. It occured to me that the problem might be that libstdc++ can't handle the file well, so I tried libc++ with clang on Gentoo, but it didn't do anything (the object file size remained the same). Then I thought that it might be some optimization doing something odd, but once again I had no size improvements when I went from -O3 to -O0 . -O3 -O0 The file, on line 50 includes UnicodeTable.inc . The UnicodeTable.inc contains a std::array of the unicode codepoints. UnicodeTable.inc UnicodeTable.inc std::array I tried changing std::array to C style array, but again, the object file size did not change. std::array I have the preprocessed version of the CodePoint.cpp which can be compiled with $CC -xc++ CodePoint.i -c ...

Whats the difference between virsh destroy and virsh undefine

Whats the difference between virsh destroy and virsh undefine I am new to servers and vms wanted to know the difference between virsh destroy and virsh undefine why did you tag python to this? have you checked the manual pages for the comand? I found this on the net: docs.oracle.com/cd/E19053-01/ldoms.mgr10/820-3838-10/… – dopstar Jun 29 at 9:36 Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See What topics can I ask about here in the Help Center. Perhaps Super User or Unix & Linux Stack Exchange would be a better place to ask. – jww Jun 29 at 10:19 2...

Control loop time with usleep

Control loop time with usleep I try to make sure the execution time of each loop to 10ms with usleep , but sometimes it exceeds 10ms. I have no idea how to solve this problem, is it proper to use usleep and gettimeofday in this case? Please help my find out what i missed. Result: 0.0127289 0.0136499 0.0151598 0.0114031 0.014801 double tvsecf(){ struct timeval tv; double asec; gettimeofday(&tv,NULL); asec = tv.tv_usec; asec /= 1e6; asec += tv.tv_sec; return asec; } int main(){ double t1 ,t2; t1 = tvsecf(); for(;;){ t2= tvsecf(); if(t2-t1 >= 0.01){ if(t2-t1 >= 0.011) cout << t2-t1 <<endl; t1 = tvsecf(); } usleep(100); } } First, you have to decide which language you are using… – sidyll 2 days ago ...