Posts

Showing posts from July, 2016

Get a list of packages installed locally do this in your terminal

To get a list of packages installed locally do this in your terminal: dpkg --get-selections | grep -v deinstall To save that list to a text file called packages on your desktop do this in your terminal:   dpkg --get-selections | grep -v deinstall > ~/Desktop/packages

$ is not defined in jquery

Change the order you're including your scripts (jQuery first)

background process in perl cgi

like my command is $cmd = perl ExomeSeqAMLpipeline.pl --input $tmpfilenameOne $tmpfilenameTwo --output $file_path 1)     my $proc2 = Proc::Background->new("$cmd 1>&2");     $proc1->alive;     $proc1->die;     $proc1->wait;     my $time1 = $proc1->start_time;     my $time2 = $proc1->end_time; or 2) my $pid = fork(); if (defined($pid) && $pid==0) {     exec( "$cmd" );     exit; } or 3) system("$cmd &"); or 4) exec("$cmd &"); or 5) exec("$cmd --output $file_path > /dev/null 2>&1 &");