Hi Guys, I am trying to create a shell script like setup-caspa.sh to contain
the following media-ctl commands but can't seem to get it executed properly
as the lines are too long i suppose. Since I'm a NooB, could you guys help
me figure out how to create a script on overo to handle these types of long
command lines within a .sh script? Thanks in advance for your guidance
# don't forget to chmod +x setup-caspapx.sh or else it won't run
# add it to auto start the script at boot time by using
# update-rc.d /home/nader/setup-caspapx.sh defaults
media-ctl -r -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0, "OMAP3
ISP CCDC":2->"OMAP3 ISP preview":0, "OMAP3 ISP preview":1->"OMAP3
ISP resizer":0, "OMAP3 ISP resizer":1->"OMAP3 ISP resizer output":0'
media-ctl -f '"mt9v032 3-005c":0 [SGRBG10 752x480], "OMAP3 ISP CCP2":1
[SGRBG10 752x480], "OMAP3 ISP CCDC":2 [SGRBG10 752x480],"OMAP3 ISP
preview":1 [UYVY 752x480], "OMAP3 ISP resizer":1 [UYVY 752x480]'
# at the end of the script just capture 4 snaps using yavta to make sure the
previous two commands executed properly
yavta -p -f SGRBG10 -s 752x480 -n 4 --capture=10 --skip 9 -F `./media-ctl-e
"OMAP3 ISP CCDC output"`
View this message in context: http://gumstix.8.n6.nabble.com/need-help-with-a-shell-script-to-setup-the-caspapx-camera-The-mdi-a-ctl-lines-are-too-long-for-bash-tp3503105p3503105.html
Sent from the Gumstix mailing list archive at Nabble.com.