I am trying to run the downloaded script with following commands :
1.chmod +x install-piface-real-time-clock.sh
I am getting error as "command not found" for second command. Then what should i do?
Is it safe to assume you're trying to run this bash program?ashwini wrote:It is not any program. I am trying to download script for RTC using these two commands that i have mention earlier.
Code: Select all
[email protected]:/tmp/PiFace-Real-Time-Clock$ sudo bash -x ./install-piface-real-time-clock.sh + [[ 0 -ne 0 ]] + RPI_REVISION= + set_revision_var ++ grep Revision /proc/cpuinfo + rev_str='Revision : 000f' + len_rev_str=15 + chr_index=14 + chr=f + [[ f == \2 ]] + [[ f == \3 ]] + RPI_REVISION=2 + enable_module + echo 'Enabling I2C module.' Enabling I2C module. + module=i2c-bcm2708 + modules_file=/etc/modules + grep -q i2c-bcm2708 /etc/modules + start_on_boot + echo 'Changing /etc/rc.local to load time from PiFace Clock.' Changing /etc/rc.local to load time from PiFace Clock. + sed -i 's/exit 0//' /etc/rc.local + [[ 2 == \1 ]] + i=1 + cat + printf 'Please *reboot* and then set your clock with: sudo date -s "14 JAN 2014 10:10:30" ' Please *reboot* and then set your clock with: sudo date -s "14 JAN 2014 10:10:30" [email protected]:/tmp/PiFace-Real-Time-Clock$
Please show the whole, exact, message. It is not easy to guess what is wrong without it.ashwini wrote:I just got a single message ending with :
".........it is a directory."