![]() Now I can do my analysis locally instead of our shared tier3 machine (and the monster desktop I built is slightly faster). usr/local/root/bin/thisroot.sh” to my bashrc, and everything works perfectly. Then I “sudo make install” again and it finishes. G++ -shared -Wl,-soname, libASImage.so -m32 -O2 -Wl,–no-undefined -Wl,–as-needed -o lib/libASImage.so graf2d/asimage/src/TASImage.o graf2d/asimage/src/TASPluginGS.o graf2d/asimage/src/G_ASImage.o -Llib -lGraf -lMathCore lib/libAfterImage.a -L/usr/lib/i386-linux-gnu -lfreetype -lz -lz -lXpm -lXext -lX11 -Llib -lCore -lCint -ldl -ltiff -lpng -ljpeg So I had to rerun the command that crashed adding “-ltiff -lpng -ljpeg” at the end of that command: "undefined reference to `TIFFOpen’" (and others) ![]() Then I “sudo make install”, and this crashes with Once “configure” ran, I then “sudo make” which runs for a while. Beginning around line 2550 of the “configure” file, I noticed that I needed to add “/usr/lib/i386-linux-gnu” to several library lists (I suspect something similar would be needed for 64-bit). 9.Hmm, I had trouble installing 5.34 on my 32-bit Ubuntu, and was getting theĮrror. So, we see a stream of lines saying “hello” in the output. We wrote both programs to print “hello” and exit, and pm2 tries to restart them every time they exit. │ 1 │ test │ fork │ 15 │ errored │ 0% │ 0b │ │ 0 │ test │ fork │ 94 │ stopped │ 0% │ 0b │ Applying action stopProcessId on app (ids: ) home/kd/.pm2/logs/test-out.log last 15 lines: home/kd/.pm2/logs/test-error.log last 15 lines: Tailing last 15 lines for process (change the value with -lines option) We can use this id to view the output or stop the program: $ pm2 logs 0 We see that pm2 assigns an ID to every program started. Starting /home/kd/tinkering/test.py in fork_mode (1 instance) While pm2 was mainly built to run nodejs programs, it can handle others, such as python programs: $ pm2 start test.py Once the program begins, we can view the current status by running pm2 status: $ pm2 status Current process list is not synchronized with saved list. if which returns ERROR ( 1), then git is not in your PATH. │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ Starting /home/kd/tinkering/test.js in fork_mode (1 instance) Spawning PM2 daemon with pm2_home=/home/kd/.pm2 ![]() We can start a nodejs program with pm2 using pm2 start: $ pm2 start test.js As a result, we only get notified of the PID on our terminal initially and then only when the process has exited. In this case, we redirected the output and error streams to /dev/null, and the output we saw earlier is now suppressed. + Terminated gedit > /dev/null 2> /dev/null To avoid that, we can redirect the output to another location, say /dev/null: $ gedit 1>/dev/null 2>/dev/null & We also see that the output from the gedit command is still printed on this terminal. When we run the kill command on its PID, the program exits. Gedit is a GUI program, and it opens up on the desktop while leaving the terminal free to run other commands. ![]() (gedit:968967): GtkSourceView-WARNING **: 16:15:38.175: no color named 'white'įrom the above, we see that appending an ampersand to the gedit command sends it to the background and prints its PID, 968967. We can start a command in the background by appending “ &” to the end of the command: $ gedit &
0 Comments
Leave a Reply. |