0
votes
0answers
2 views

Process crashed on the first several times when launching

I use OpenWrt and build OpenWrt provided Python 2.7.9 as modules which are standalone .ipk files. I simply copy those ipk files to our MIPSel platform and install it to a mounted file system on eMMC. ...
0
votes
0answers
7 views

What does the “pipe” command do in mailx?

When using the mailx command line utility, there is a command called pipe listed in the man page (although not visible when using the help command). What does this command do? I want to be able to ...
2
votes
2answers
10 views

Who or what compiled /usr/share/dict/words?

Wikipedia says it's part of the wishlist Wordlist or Words package On Debian and Ubuntu, the words file is provided by the wordlist package, or its provider packages wbritish, wamerican, etc. On ...
0
votes
1answer
14 views

how can I find files based on different names and delete all them in one single line

Finding files based on different names I know how to do. The problem is that I don't know how delete all of them at once. I am using OMVS in z/OS390. To find files searching by different extensions I ...
0
votes
0answers
11 views

bash script to copy and rename directory and files therein

I start with a single directory with input and command files in them in such an order: unit.1.2 //1 is variable A, 2 is variable B -unit.1.2.in -unit.1.2.cmd I need to copy and rename ...
1
vote
0answers
6 views

Enabling export cipher suites in Apache/OpenSSL

I would like to enable export cipher suites in Apache for the purpose of testing out some old vulnerabilities. I haven't been successful thus far, and would greatly appreciate some assistance. My ...
0
votes
0answers
10 views

How to execute a command when receiving an email?

I want to implement an email-to-SMS gateway. I already have the SMS part (send a SMS with REST API, curl http). I have a Debian server with Exim. I want to execute a shell command when an email is ...
-1
votes
0answers
10 views

How to sum many numbers inside 2D array using awk

I need to sum numbers located in a file like this one: column1 column2 column3 row1 a(1,1) a(1,2) a(1,3) row2 a(2,1) a(2,2) a(2,3) row3 a(3,1) a(3,2) a(3,3) row4 a(4,1) ...
0
votes
1answer
7 views

How to make parallel-ssh stop prompting for password?

I have passwordless ssh setup between the 2 machines. ssh doesn't prompt for password but pssh does. I cannot run commands which need data piped into pssh as the prompt messes with the input. How to ...
1
vote
0answers
10 views

Directory of the “open files dialog” in Kicad

I need to make an application (Kicad, in this context) launch its "Open File" dialog in current working directory (where I launched Kicad). Is there any standard environment variable for this ...
3
votes
0answers
15 views

Can I use systemd to start and stop a service based on the presence of a file?

My config thus far is: foo.path [Path] PathExists=/tmp/foo.path [Install] WantedBy=multi.user.target foo.service [Unit] Description=Matt Test BindsTo=foo.path [Service] ExecStart=/bin/sh ...
0
votes
0answers
11 views

What is difference between kill [pid] and kill -9 [pid] commands? [duplicate]

I've been using "kill -9 [process_id]" command to terminate the process such as hanged process. However someone told me it is better to use "kill [process_id]". Are there different consequences other ...
3
votes
4answers
44 views

How safe it is to output to <dir> simultaneously with rm <dir>/*

Sometimes I need to remove all the contents of a directory and create new files there. Can I do something like this and expect all new files to remain intact: % rm -rf regression/* & ( sleep 10 ; ...
2
votes
2answers
26 views

Shutdown procedure clarification

The book "How Linux Works" says the general shutdown procedure (independent of init system) is something like this: init asks every process to shut down cleanly. If a process doesn’t respond after a ...
0
votes
0answers
31 views

Kill process by name

I have a script like this running in background. nohup /tmp/a.sh & If the script is running for more than 5 mins , i want to kill it. -bash-3.2$ nohup /tmp/a.sh & [1] 2518 -bash-3.2$ ...
0
votes
1answer
11 views

Pre-built developer ubuntu VM

I'm searching for a Ubuntu (or other Linux distribution) VM with pre-installed Maven, JDK, Code-Editor, etc. It's pretty annoying to install all these tools every time you set up a new development ...
0
votes
0answers
6 views

Open VPN does not work on Trisquel (Mullvad)

I use MullvadVPN and want to use it on my machine running Trisquel. I downloaded the .tar.gz file, extracted it, imported the files using Network Manager and saved. Just like the instructions said. ...
1
vote
0answers
9 views

Mutt - Automatic Display Sent Email

I am new to Mutt and I am trying to replicate Gmail's behaviour after sending an e-mail. It stays on the thread of the conversation and shows the sent e-mail. After sending a message in the Mutt ...
-1
votes
1answer
29 views

Need OS for old laptop [on hold]

I have this old laptop. A Dell Inspiron 2500 that needs an operating system. It does not support usb boot or DVD live boot. So that only leaves CD ROM. wich only has a 700mb capacity. I've tried ...
2
votes
2answers
23 views

How much memory is a specific user using

Is it possible to find out how much memory I am using on a multiuser linux machine? I want to know whether I am using a lot of memory and possibly inconveniencing others, so I can shut down my ...
1
vote
0answers
15 views

How to proxy all traffic except local traffic and ssh to another server?

I have an application that connects a local database on the loopback address. I would like to send all the traffic of this application to another server to hide it's IP. The first solution I tried is ...
1
vote
0answers
16 views

BusyBox on persistent USB Livesystem

I fiddled a bit with creating a Live USB stick for creating a LFS system on my new computer. To make this easier I wanted to store some persistent data on it as well (settings, GCC, make and such ...
0
votes
0answers
13 views

Bash Script to start a service on Ubuntu Linux 16.04

Does the following Ubuntu 16.04 bash script command: exec /usr/lib/mono/4.5/mono-service.exe \ /home/frank/Debug/My_Camera_Recorder.exe "$@" >& /dev/null start the My_Camera_Recorder ...
4
votes
2answers
338 views

bash: I broke [[ < ]]

I was writing a bash script and suddenly this behaviour started: [[ 1 < 2 ]]; echo $? # outputs 0 [[ 2 < 13 ]]; echo $? # outputs 1 but -lt works soundly: [[ 1 -lt 2 ]]; echo $? # outputs ...
0
votes
0answers
8 views

No keyboard input upon boot

I have just finished Linux-from-scratch (7.9). I followed the instructions exactly, and ran into no problems during the build. However, when I booted for the first time, it seemed to boot okay; it got ...
0
votes
1answer
12 views

Driver install neccessary on ThinkPad with two GPUs?

Im not that new to Linux but just used it the last years for server and/or testing most often in VMs. Now Ive just got a new ThinkPad and I want to use debian as a native install. My notebook: Lenovo ...
-2
votes
1answer
49 views

How can I split below file by content [on hold]

cat file1 UK 123 123 232 453 US 879 989 232 212 china 8752 232 2342 4332 I need us.txt, uk.txt and china.txt cat US.txt 879 989 232 212
0
votes
1answer
66 views

Unix for loop and grep combined

What if you have 5 or 6 files, specific files .biz in a directory, and you want to store them one at the time in a variable $file, and want to use a script based on what the $file holds until no more ...
2
votes
1answer
19 views

How does one change the title of any window in X?

I would like to know if it is possible to put an arbitrary name as window title for any application in X or OpenBox. And if it is, How to do it or just a nice link to some documentation which I have ...
2
votes
1answer
17 views

Get Wi-Fi interface device names

Similar to a previous question about finding network device names, I would like to get a list of device names but just for Wi-Fi devices. So that it looks like the following depending on your naming ...
2
votes
1answer
21 views

Can I unlock 'pass'?

In my search for a simplistic password manager, I found 'pass' and made it my choice. One unexpected difficulty, that I encountered, is that web searches about its features are difficult to phrase in ...
1
vote
1answer
34 views

completely ignore lines that start with a specific pattern

I have a script which analyzes the output of a computation software. sometimes the output comes with some extra data that are irrelevant to my script. This data can be huge and makes running my simple ...
1
vote
1answer
18 views

Firefox with X11 Forwarding is not working

I cannot open firefox via ssh: I've tried with: ssh -vvv -X user@192.168.40.21 But it outputs: debug3: send packet: type 50 debug2: we sent a password packet, wait for reply debug3: receive ...
2
votes
1answer
30 views

Run one command after another in zsh when Ctrl-C is pressed

I have recently moved to zsh from bash. I have an bash alias I have used to run one program then another (even if previous program exits with error) on bash. I can't work out how to replicate this ...
0
votes
0answers
13 views

CentOS 7.2 Minimal Time synchronization timedated and/or ntpd/chrony

Environment: KVM CentOS 7.2 Minimal installation. I am trying to sync the time with an NTP server in my network. My Proxmox-Host (Debian based) is able to do this by enabling ...
0
votes
1answer
4 views

Failed to syncronize cache for repo 'fedora' … (possible proxy issues)

I just started on a fedora build. Just managed to add myself to the sudoers file, so now I am attempting to grab vim. I do a sudo dnf install vim and get hit with the following error message. ...
0
votes
0answers
10 views

Error control SFTP script [on hold]

I have error control of ftp script, but now I need error control of sftp. #!/bin/ksh error_ftp () { ERROR_CONNECTION=`grep -c "unknown host" $1` HOW_PUT=`grep -c "put " $0` ...
0
votes
1answer
23 views

USB drive kaput!

syslog reports that /sys/devices/pci0000:00/0000:00:14.0/usb2/2-1 has been inserted, neither fsck nor photorec see it. Is there some other means to recover the files on this device?
0
votes
1answer
16 views

How do I edit sudoers file in fedora? [duplicate]

I have just started a new fedora build. I just got things going, and was about to install tmux, and was hit with the message... Error: This command has to be run under the root user Ok. I attempt ...
0
votes
0answers
30 views

stderr not redirected to stdout

I run a TACACS+ server which sends debug information to stderr. As I would like to grep specific data from this debug information, I redirected stderr to stdout: tac_plus -f ...
1
vote
0answers
14 views

apache2 core dump not generated

I am trying to solve the following error in my apache2 error.log file. I use Debian Jessie 8 up-to-date with apache 2.4.10 from repo. [Tue May 31 16:35:21.951165 2016] [core:notice] [pid 6926:tid ...
1
vote
2answers
36 views

More efficient X-forwarding?

I open GUI remote programs by SSHing with the -X (or -Y) flag, e.g., $ ssh -Y user@host.com Recently, I found there is a much more efficient way to do this with web browsing only: $ ssh -DNNNN ...
1
vote
1answer
27 views

Compare string in two files And Merge its Output

I am trying to get the bandwidth of the domain from one file and its hits details from another file. The format of the two files is as follows: bandwidth.txt aadrivingschool.ws 2840.36M ...
2
votes
0answers
10 views

How do I cancel an operation in alpine email client?

Occasionally when I'm doing something in alpine, I'll forget and do the wrong thing (like open up my gmail folder when I meant to open my other IMAP account). Then I have to wait for a few seconds ...
1
vote
1answer
25 views

Reason for requirement for root for package management

In package managers like pacman and apt, the root check is hard coded into source using guid checks. Why is this? A non privileged user can compile a program - let's say chromium browser - from ...
1
vote
3answers
24 views

How to delete all duplicate hardlinks to a file?

I've got a directory tree created by rsnapshot, which contains multiple snapshots of the same directory structure with all identical files replaced by hardlinks. I would like to delete all those ...
0
votes
0answers
34 views

How tcan I delete columns from a file without losing the format?

I have a file with this information: 1 2 3 4 5 O O O O O Eigenvalues -- -20.44628 ...
2
votes
4answers
24 views

How do i find over 200K differently named files and output

We have a SAN with a lot (over 5 million) of files. Because of some freak mistake from a developer script, some files have been deleted and we now have to figure out which files got deleted. Now, I ...
-1
votes
0answers
17 views

How to mask SIGCHLD when running execle on Ubuntu Linux 16.04? [on hold]

I need to mask SIGCHLD when running execle on Ubuntu Linux 16.04 using the following code excerpt: sprintf(environment_variable,"LD_LIBRARY_PATH=%s",argvp[3]); cout << environment_variable ...
2
votes
1answer
13 views

How do I use `lpr` to print multiple files using 4 pages per sheet?

I create eps/png/pdf figures using python scripts. I want to use one lpr command to print several figures with 4 on each sheet of paper. The following command printed each figure on one fourth of a ...

15 30 50 per page