I know what the command watch -n does. I would like to do something like the following: Essentially I want to repeat a command every 5 seconds, then stop after 30 minutes has passed. I’m missing the stop 30 minutes part. What command should I use to achieve this? Thanks. Answer Use timeout:
Tag: ubuntu
Difficulty with python while installing YouCompleteMe in vim
I’ve followed these instructions, in order to install YouCompleteMe in Vim, but when I issue: The following error message comes up: and now I’m stuck, what should I do? Answer I checked YouCompleteMe’s build system and it uses a custom build script that uses the Python module distutils to fi…
Login to Amazon EC2 via ssh
I have a question and am stuck at something. I recently created AWS EC2 Ubuntu instance with default settings. I have an Ubuntu machine locally as well and so far I managed to connect successfully to the Ubuntu instace with this command However I want to know if there is a simpler way to login to ssh without …
Change output filename when running a command in a loop
I am using the Tracer software package (https://github.com/Teichlab/tracer). The program is invoked as followed: tracer assemble [options] <file_1> [<file_2>] <cell_name> <output_directory> The program runs on a single dataset and the output goes to /<output_directory>/<cell_n…
can’t upload file to wordpress
I move my wordpress website to my vps with Cpanel, after move every thing is working well, but my media option can’t upload file to my library, I try to set permission for uploads folder and subfolders to 755,775 even 777 but media uploader get me this error : The uploaded file could not be moved to wp-…
jsreport failing on looking up extensions
So I recently started working on a linux machine (ubuntu 16.04) and followed the installation instructions here http://jsreport.net/downloads/. When I run npm start –production I get And I have no idea why. It was working fine on mac but now it is looking for this non-existent tmp file in ember. I’…
Capture output from external command and write it to a file
I am trying to create a script that calls on a linux command from my Ubuntu server and prints the output of aforementioned command to txt files. This is literally the first script I’ve ever written, I just started learning python recently. I want 3 files in 3 separate folders with filenames unique to da…
Compile libxml2 get “error: storage size of ‘hints’ isn’t known”
I download libxml2 2.9.4 in here, when i ./configure; make, i get following error: the full output is here here is my environment: I try version 2.9.2 and 2.9.3, i get same error, how to compile libxml2 success? Answer I find the solution: in nanohttp.c, the error line: so i can disable ipv6 to don’t co…
Node “No such file or directory” with certain packages
I installed two packages via npm: alsatian@1.0.0-alpha.7 gulp@3.9.1 As I am using nvm to manage my node versions, the CLI files for the two packages were installed at the following paths: /home/james/.nvm/versions/node/v6.3.1/lib/alsatian/cli/alsatian-cli.js /home/james/.nvm/versions/node/v6.3.1/lib/gulp/bin/…
Run bash whiptail script after login with sudo
I’m creating a virtual machine configuration script using whiptail that I’d like to have automatically start after the user logs in. The thing is, that I don’t want the user to be root, however because the user will need to be able to change things like hostname, ip address, add directories,…