From: Robert J. <tuk...@gm...> - 2008-04-06 21:35:35
|
I'm using sh format, im not sure if that helps. I am new to shell scripting. My impression was that you just had to create a txt file with the extension .sh and then run it with the command "sh TextFile.sh" Am I missing something big? Do I have to run it another way? ./TextFile does not work for me. Do I have to enter a shell scripting mode or something? On Sat, Apr 5, 2008 at 4:16 AM, Sylvain Munaut <24...@gm...> wrote: > Is your script in UNIX format ?i.e. CR and not CR/LF ? > > Sylvain > > On Fri, Apr 4, 2008 at 10:12 PM, Robert Johnston <tuk...@gm...> > wrote: > > > I am trying to insert a pause between commands I send a servo controller > > (attached to the gumstix console-vx) but whenever I use the sleep command I > > get the useage as if I were to type "sleep --help" Any suggestions? > > > > Here is the code I am using named initialize.sh: > > > > $vi initialize > > #!/bin/sh > > echo -e "#0 P1500 T1000\r" > /dev/ttyS0 > > sleep 1 > > echo -e "#12 P1500 T1000\r" > /dev/ttyS0 > > sleep 1 > > echo -e "#18 P1500 T1000\r" > /dev/ttyS0 > > sleep 1 > > > > Error message I am getting: > > Busybox v1.2.1 usage: > > > > sleep [N] ... > > > > Busybox v1.2.1 usage: > > > > sleep [N] ... > > > > Busybox v1.2.1 usage: > > > > sleep [N] ... > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > gumstix-users mailing list > > gum...@li... > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > |