is there a way to find list of valid locales in my linux using perl?
This command will give you a list of locales: locale -a From a Perl script you can execute the same using system(“locale -a”);
This command will give you a list of locales: locale -a From a Perl script you can execute the same using system(“locale -a”);
remove -serial stdio parameter add -nographic parameter and change the kernel parameter terminal = ttyS0 to console=ttyS0. This should do the trick. qemu -nographic -kernel ./bzImage -hda ./image.hda -append root=/dev/sda console=ttyS0 You may want to check the script I use for kernel development: https://github.com/arapov/wrap-qemukvm (it’s not very “production”, but you can find useful qemu cli … Read more
You are looking for pwd.
Some things won’t respond to Ctrl+C; in that case, you can also do Ctrl+Z which stops the process and then kill %1 – or even fg to go back to it. Read the section in man bash entitled “JOB CONTROL” for more information. It’s very helpful. (If you’re not familiar with man or the man … Read more
How about the following: 0 0 * * 1,4 This sets the day of week to Monday (1) and Thursday (4). You can choose any values 0–7 (both 0 and 7 are Sunday). For a more readable crontab, you can also use names: 0 0 * * MON,THU See also: How to instruct cron to … Read more
You should be able to use curl –interface zz.zz.zz.zz http://example.com/
MATLAB can run scripts, but not functions from the command line. This is what I do: File matlab_batcher.sh: #!/bin/sh matlab_exec=matlab X=”${1}(${2})” echo ${X} > matlab_command_${2}.m cat matlab_command_${2}.m ${matlab_exec} -nojvm -nodisplay -nosplash < matlab_command_${2}.m rm matlab_command_${2}.m Call it by entering: ./matlab_batcher.sh myfunction myinput
Finally I find THE solution: convert in.pdf -append out%d.png Thanks to this post. edit As a plus, the opposite operation is: convert *.png output.pdf or if you have foo1.png, foo2.png..fooN.png convert foo?.png output.pdf Notice that does not work with foo01.png, foo02.png..foo0N.png
I installed the following missing packages: sudo apt-get install qtbase5-dev sudo apt-get install qtdeclarative5-dev Attaching any kind of prefix is not required now: CMakeList: :~/junk/qtquick_hello_cmake$ cat CMakeLists.txt cmake_minimum_required(VERSION 2.8.12) project(qtquick_hello_cmake) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) find_package(Qt5 COMPONENTS Quick Core REQUIRED) qt5_add_resources(RESOURCES qml.qrc) add_executable(${PROJECT_NAME} “main.cpp” “qml.qrc”) qt5_use_modules(${PROJECT_NAME} Quick Core) target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Quick) New output: :~/junk/qtquick_hello_cmake$ … Read more
Below is a really basic perl script I wrote. With a bit of tweaking it could be useful. You just need to change the paths I have to the paths of any processes that use Java or C#. You could change the kill commands I’ve used to restart commands also. Of course to avoid typing … Read more