The left part data (in variable) like : echo "$lpart" "2017-07-03 13:39:5", "-39dB", "7c:e9:d3:f1:61:55" "2017-07-03 13:39:5", "-39dB", "7c:e9:d3:f1:61:55" "2017-07-03 13:39:5"
I want to run a set of commands out of which some I want to run simultaneously in another terminal using shelll script. Let's say I have the below four commands command1 command2 command3 command4 First I want to start command1 in terminal 1 & while
I ran git pull on my Ubuntu VM, and I got Enter passphrase for key '/root/.ssh/id_rsa': remote: Counting objects: 7, done. remote: Compressing objects: 100% (7/7), done. remote: Total 7 (delta 4), reused 0 (delta 0) Unpacking objects: 100% (7/7), don
I made sure the env module was installed: a2enmod Your choices are: access_compat ... Which module(s) do you want to enable (wildcards ok)? env Module env already enabled I tried setting an environmental variable in "/etc/apache2/apache2.conf" f
This was what I have tried grep -n 'qtrain' *.m But I got also SKSC.m:195:model.qtrain = model.qtrainExtra(:,k-1); SKSC.m:196:model.mqtrain = model.mqtrainExtra{k-1}; SKSC.m:197:model.sqtrain = model.sqtrainExtra{k-1}; How to get rid of the others? I
i am using putty, want to delete all files which having .html extension I am trying the below ways 1st get the file by using find command find . -name "*.html" -type f Listing all files having .html extension now i am going to delete those files
I have to write a bash script that launches a process in background in accordance to command line argument passed and returns if it were successfully able to run launch the program. Here is a pseudo code of what I am trying to achieve if [ "$1"
I have an xml file (client_23.xml) in which I need to add few lines at a particular section basis on what is there in other xml file (abc_lop.xml). Here is my abc_lop.xml file in which you see I have lot of ClientField lines with name, pptype and dat
I am attempting to use CMake to generate eclipse project files. Although I am able to build successfully, I am unable to browse or edit the source in eclipse. This is an out of tree build, where my build directory is at the same level as my source di
I have written two program (program 1 and program 2) to communicate with each other using shared memory. program 1 reads from a file a sentence and pass it after modification to get first letter of each word and its size to the next program ( program
I have files with the format given below. Please note that the entries are space seperated. 16402 8 3858 3877 3098 3099 3858 -9.0743538e+01 1.5161710e+02 -5.4964638e+00 3244 -9.7903877e+01 1.8551400e-13 1.0194137e+01 3877 -9.2467590e+01 1.5160857e+02
I'm not too familiar with Linux so please forgive the ignorance. I'm trying to dump a file to a virtual floppy disk using the command: dd if=a.out of=image bs=1024 count=1 conv=notrunc It creates the image file with the exact same size of a.out (1kB)
Why is command "bundle" not found when using sudo: [root@desktop gitlab]# sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production sudo: bundle: command not found [root@desktop gitlab]# but does exist when not using sudo: [root@desktop
I have a websocket service. it's strage that have error:"too many open files", but i have set the system configure: /etc/security/limits.conf * soft nofile 65000 * hard nofile 65000 /etc/sysctl.conf net.ipv4.ip_local_port_range = 1024 65000 ulim
I have a file with very, very long lines. A single line will not fit in memory. I need to process each line separately, so I'd like to write each line to a FIFO node, sending EOF between lines. This model works well for what I'm doing, and would be i
I am learning Linux commands and I learnt that you can write a shell script and put in a customized directory (e.g. ~/bin/ ) and export to $PATH or you can write it as a shell function and put in .bashrc file. If I may ask, what is the right situatio
Would like to reference the full path to the which command as an improvement to some shell scripts. Is anyone aware of a standard location for some unix gnu/linux distribution BESIDES /usr/bin/which?which is not a standard part of linux systems. It's
I am looking for a script which does monitor the cpu usage per day. All the scripts that I have come across does kind of real time monitoring and send an email if it meets certain aspects like the load increasing beyond 80%. Is it possible to monitor
I have a script hex.bat that has: #!/bin/bash HEX_ROOT=. HEX_COLOURS=./data HEX_PDB=. HEX_MACROS=. HEX_CACHE=./data time ./hex6i.x64 -kill -nogui -ncpu 1 -ngpu 1 -e dock.mac -l job.log All the output goes to job.log, except the time. I want to save i
I have a Server (A) and a client (B), written in C, running on the same Linux machine. The server binds a port to INADDR_ANY, and the client binds another port to INADDR_ANY. When another client (C), which is running on another Linux machine, connect
On Ubuntu 12.04, open a new text file and write: #include <stdlib.h> int main() { abort(); return 0; } Now run: g++ yourfile.cpp Then run the executable, which will core dump: ./a.out Now check the mtime of the file: -rw-r----- 1 xxxxx xxxxx 228K 20
I have migrated from Linux (Ubuntu) to Mac OS. I have wrote an application in Java (swing). I have run it successfully the same code in windows and linux but in mac os I have some problems. Here is the code and problems in comments: public MainForm()
So, I have had this working on Ubuntu before. But then I upgraded to 11.10. Now, no such luck. Note: if you are still messing with getting this to work on eclipse, you might want to try this command line stuff... if it doesnt work here, its not going
I have made an application in which there is a file main.c which uses a function from the master.c file. I would like to debug my application for all functions defined in the master.c file by using gdb tool. Is this possible and if so how?You must co
I am new to linux kernel and low level programming. I wanted to know how linux scheduler is supposed to be O(1) in time complexity. I came across the following article which is very informative but I have a problem understanding the pargraph I have r
I have a simple program under Linux which sends SIGUSR1 signal to its child process in a cycle. But when I send e.g. 10 signals, sometimes happens, that the child received only 3 of them. Last sent signal is always SIGUSR2 and that is received every
There are a lot of example implementations of daemons on the net. Most that I saw do not use the daemon(3) function to run the program in the background. Is that just a matter of taste, ignorance, or is there a good reason to write my own daemonize f
I got in every php project (around 25!), some sh scripts that help me with routine tasks such as deployment, repo syncronizing, databases exporting/export, etc. The sh scripts are the same for all the projects I manage, so there must be a configurati
I'm trying something new, I would normally do this in C# or VB. But for speed reason I'd like to do this on my server. Open File terms.txt Take each item one at a time from terms.txt and open a url (possibly curl or something else) and go to http://s
What is the state generating Excel documents from a PHP application on a Linux server? I am interesting in creating Office 97 (xls) Excel files. My limited research on the subject has turned up this Pear package. It appears to be in beta status since