Reply
Thread Tools
Posts: 39 | Thanked: 5 times | Joined on Sep 2008
#1
I want to have these two files being able to be run on my N810 to sync my todo list with the svn repository:

To retrieve updated content:
Code:
#!bin/bash

WORKING="/home/user/.gpe/"
SVNPATH="/media/mmc1/gpe/"

cd
ls -la
ls -d .*
ls -d {.*,*}
echo .*
echo {.*,*}
cd $SVNPATH
cp calendar categories contacts todo $WORKING
To commit content
Code:
#!bin/bash

WORKING="/home/user/.gpe/"
SVNPATH="/media/mmc1/gpe/"

cd
ls -la
ls -d .*
ls -d {.*,*}
echo .*
echo {.*,*}
cd $WORKING
cp calendar categories contacts todo $SVNPATH
echo $SVNPATH
svn commit
However, I am having a lot of trouble getting this working. I am not seeing any verbose output of those two scripts. It would be great to hear some suggestions. Thanks.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#2
Maybe you don't have bash installed.

In any case you should never ever use #!/bin/bash for sh-compatible scripts. There are only very rare cases where you really need a bash-specific feature. For all other sh scripts (if you've got bash or not) you should use
#!/bin/sh
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 39 | Thanked: 5 times | Joined on Sep 2008
#3
I did have bash installed. I tried #!/bin/sh and #!/bin/ash and still didn't work.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#4
A simple version (just doing ls -ld .*) works fine for me. Do you have the 'x' bit set? Try running the script with
sh -x name-of-script
which will list every line of the script as it executes.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:23.