Run the below example, you will see there was nothing printed from
fmt.Println in exec(), why?
func longexec (name) {
// simulate long execution
for p := 0; p < 10 ; p++ {| import argparse | |
| import subprocess | |
| def main(): | |
| argparser = argparse.ArgumentParser() | |
| argparser.add_argument('name') | |
| argparser.add_argument('pwd') | |
| args = argparser.parse_args() |
| # download ubuntu iso | |
| The iso version should be lower/equal than/to the host version. | |
| # install uck (ubuntu customization kit) | |
| run: | |
| sudo apt-get install uck | |
| # setup chroot environment from iso |
| /* | |
| * darkern loading page background | |
| */ | |
| #browser vbox#appcontent tabbrowser, | |
| #content, | |
| #tabbrowser-tabpanels, | |
| browser[type=content-primary], | |
| browser[type=content] > html { | |
| background: black !important | |
| } |
| " Author: Vu Le <thenewvu@gmail.com> | |
| " Maintainer: Vu Le <thenewvu@gmail.com> | |
| set background=dark | |
| highlight clear | |
| if exists("syntax_on") | |
| syntax reset | |
| endif | |
| let g:colors_name="pro" |
| # | |
| # Copyright (C) The Android Open Source Project | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
| ffmpeg \ | |
| -f avfoundation \ | |
| -framerate 5 \ | |
| -pixel_format bgr0 \ | |
| -i 1 \ | |
| -c:v libvpx-vp9 \ | |
| -preset ultrafast \ | |
| -g 10 \ | |
| -capture_cursor 1 \ | |
| -cpu-used 8 \ |
| Section "InputClass" | |
| MatchIsTouchpad "on" | |
| Identifier "Trackpad" | |
| Driver "mtrack" | |
| Option "Sensitivity" "0.40" | |
| Option "FingerHigh" "5" | |
| Option "FingerLow" "1" | |
| Option "IgnoreThumb" "true" | |
| Option "IgnorePalm" "true" | |
| Option "TapButton1" "1" |
| let smoothscroll="true" | |
| let autohidecursor="true" | |
| let autofocus="false" | |
| let sortlinkhints="true" | |
| let completeonopen="true" | |
| let completionengines=["google"] |
| #!/bin/sh | |
| sj=$1 | |
| to=$2 | |
| in=$3 | |
| on=$4 | |
| echo "sj=$sj" | |
| echo "to=$to" | |
| echo "in=$in" |