I was trying to run a command with at, but with no success…
I guess that at is primary designed to run shell scripts…. BUT if want to run system command?
echo "ls -la" | at now + 1 minutes
It will run the ls -la from now plus one minute 🙂
I was trying to run a command with at, but with no success…
I guess that at is primary designed to run shell scripts…. BUT if want to run system command?
echo "ls -la" | at now + 1 minutes
It will run the ls -la from now plus one minute 🙂
f*ck!
i’v been struggling with avconv, exec, chown and all that sh*ts this last two days!
’cause i was trying to preform a  exec to avconv to create some screencaps and the command was  in two lines…
echo $avconScreenScroll = 'avconv -i '.$destFolder.'/' . $dataVideos['videos'][$key]['videoFilename'] . ' -vsync 1 -s 150x100 -qscale 1 -r 1 -an -y ' . $screencapsDir . '/scroll/img%03d.jpg'; exec($avconScreenScroll);
exec() executes an external program
shell_exec() executes a command via shell and returns the output as a string
To limit CPU usage of the process called avconv to 70%, enter:
cpulimit -e avconv -l 30
To limit CPU usage of the process to 70% by using its PID, enter:
cpulimit -p 6969 -l 70
If the process isn’t running cpulimit will wait for it.
Process using 100% of the CPU
3028 pjrfiguei 20 0 131M 13948 4404 R 100. 1.4 0:27.49 avconv -i video.wmv -vsync 1 -s 300x200 -qscale 1 -r 2 -an -y img%05d.jpg -benchmark
Process using 30% of the CPU
3028 pjrfiguei 20 0 131M 13948 4404 T 30.0 1.4 2:24.25 avconv -i video.wmv -vsync 1 -s 300x200 -qscale 1 -r 2 -an -y img%05d.jpg -benchmark
Nginx
Nginx  develops and maintains NGINX open source distribution, and offers commercial subscriptions and professional services for NGINX. NGINX supports more than 95 mln of web-sites ll over the world.NGINX project started in 2002 and grew dynamically over the past 10 years thanks to the vision of Igor Sysoev, and the enthusiasm and support of its loyal community of users and developers. It is now the second most popular open source web server worldwide, according to the latest Netcraft survey. NGINX is used by over 20% of the top 100,000 busiest sites, including Netflix, Facebook, Zappos, Groupon, LivingSocial, Hulu, TechCrunch, Dropbox and WordPress, as well as by almost 13% of the entire Internet web sites population
Quick Facts:
- Project started in 2002, company since 2011
- Run by 15% of Internet domains, 95 million sites
- Run by 20% of world’s 10.000 most busiest sites
http://runacap.com/companies/portfolio/nginx/
To find out PID of the process use any of the following
ps aux | less ps aux | grep nginx pgrep -u user php-fpm pgrep avconv
Â
Create a single file for your project to describe the type of machine you want, the software that needs to be installed, and the way you want to access the machine. Store this file with your project code.
Run a single command — “vagrant up” — and sit back as Vagrant puts together your complete development environment. Say goodbye to the “works on my machine” excuse as Vagrant creates identical development environments for everyone on your team.
Some clients of vagrantup or hashicorp








Does your team, company, family want your own dropbox, mega.co.uk, meocloud.pt or similar running on your own infrastructure? afraid of NSA, CIA or KGB spying your data?
ownCloud gives you universal access to your files through a web interface or WebDAV. It also provides a platform to easily view & sync your contacts, calendars and bookmarks across all your devices and enables basic editing right on the web. Installation has minimal server requirements, doesn’t need special permissions and is quick. ownCloud is extendable via a simple but powerful API for applications and plugins.
http://owncloud.org/
SparkleShare creates a special folder on your computer. You can add remotely hosted folders (or “projects”) to this folder. These projects will be automatically kept in sync with both the host and all of your peers when someone adds, removes or edits a file.
http://sparkleshare.org/
Just bought one of those…
a old rack server from DELL just to have fun with it.
On my stack, on digitalocean, i have Ubuntu (13, and i’m deploying a small work that need avconv (former ffmpeg).
I need to convert from WMV to MP4 files and i was getting Unknown encoder ‘libx264’Â error.
This is how i’v added video encoder libx264 to my avcodec.
apt-get update apt-get install libavcodec-extra-53
Tested on
Ubuntu 13.04 (GNU/Linux 3.8.0-19-generic x86_64)
Ubuntu 12.04.3 LTS (GNU/Linux 3.8.0-29-generic x86_64)
Tried to share it!
http://stackoverflow.com/questions/11234662/how-to-compile-avconv-with-libx264-on-ubuntu-12-04/18835133#18835133