View Single Post
Posts: 138 | Thanked: 152 times | Joined on Jun 2012 @ Switzerland/Zurich
#1943
I'm trying to modify your original script so it does two more things:

1. if does not exist, create a log file, that you could later run to install all deb's in a format:

cd "direcotry where you store .debs"
dpkg -i (name of application that was catched)

And everytime it catches an application it should append dpkg -i line with app name to that file

2. Run indefinitely, until you close terminal

But for the time being, I keep getting "unexpected eof" error, even with your "vanilla" script - but I guess this is how it should be when you write a bash for the first time :P


EDIT: argh, this is driving me crazy: I can't even run the simplest if then statement, everytime I get an error with unexpected eof.
What I do is open terminal, devel-su and pswd
Then cd to where my .shell script is
The bash shellscript.shell

simple script structure:

#!/bin/bash
count=100
if [ $count -eq 100 ]
then
echo "Count is 100"
fi

I don't want to mess up this thread, so if anybody knows what I'm doing wrong, please PM me instead of answer here. Thx!

Last edited by don.edri; 2012-08-03 at 08:46.