페이지

2015년 1월 6일 화요일

환경변수


  1. 환경변수 등록방법
    VARIABLE = value
  2. 개별 환경변수 확인
    echo $VARIABLE 
  3. 전체 환경변수 확인
    printenv
  4. 쉘에 환경변수 적용
    export VARIABLE 
  5. 환경변수 등록 & 적용
    export VARIABLE = value
  6. 환경변수 파일
    /etc/profile
    ~/.bash_profile
    ~/.bashrc
    ~/.profile
  7. PATH 추가하기
    PATH = $PATH:/usr/directory
    export
  8. 출처
    https://help.ubuntu.com/community/EnvironmentVariables
    https://kldp.org/node/69242
    http://ubuntu.or.kr/viewtopic.php?p=115063

Edison Arduino에서 갑자기 스케치가 업로드 안될때.

#mv the downloaded file to /sketch/sketch.elf
Moving downloaded file to /sketch/sketch.elf on target
target_download_name="${host_file_name##*/}"
echo "Moving downloaded file to /sketch/sketch.elf on target"
#$fixed_path/lsz.exe --escape -c "cp sketch /sketch/sketch.elf" <> $tty_port_id 1>&0
$fixed_path/lsz.exe --escape -c "mv $target_download_name /sketch/sketch.elf; chmod +x /sketch/sketch.elf" <> $tty_port_id 1>&0
Retry 0: Got TIMEOUT
Retry 0: Got ZCAN

Transfer incomplete



You're right Doug, after deleted all contents in from /var/log/journal directory the sketch was correctly uploaded.
Thanks a lot.


> rm -r *

출처 : https://communities.intel.com/thread/55976