Current time: 12-23-2024, 03:54 PM Hello There, Guest! (LoginRegister)


Post Reply 
nightly update script won´t work
Author Message
FidiBus Offline
Junior Member
*

Posts: 21
Joined: Aug 2009
Reputation: 0
Post: #1
nightly update script won´t work
hi,
i would likw to try the nightly update.
by calling the nightly update-script(n_updat.sh) with
./n_updat.sh i get just a:
admin:/# ./update.sh
bash: ./update.sh: /bin/sh^M: bad interpreter: No such file or directory

chown is root:root...chmod is 4777
what i´m doing wrong. other scripts work that way. ipasted the code from here in nano.

thank you
(This post was last modified: 09-01-2009 10:18 PM by FidiBus.)
09-01-2009 10:18 PM
Find all posts by this user Quote this message in a reply
ut2k3 Offline


Posts: 4
Joined: Aug 2009
Reputation: 0
Post: #2
RE: nightly update script won´t work
Remove all ^M from the file. This problem occurs maybe if you paste from windows to putty or something like this.

====

To remove the ^M characters at the end of all lines in vi, use:

:%s/^V^M//g

The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this:

:%s/^M//g

In UNIX, you can escape a control character by preceeding it with a CONTROL-V. The :%s is a basic search and replace command in vi. It tells vi to replace the regular expression between the first and second slashes (^M) with the text between the second and third slashes (nothing in this case). The g at the end directs vi to search and replace globally (all occurrences).

Other way is to use the tool - hm the name was dos2unix i think
(This post was last modified: 09-01-2009 10:48 PM by ut2k3.)
09-01-2009 10:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
FidiBus Offline
Junior Member
*

Posts: 21
Joined: Aug 2009
Reputation: 0
Post: #3
RE: nightly update script won´t work
thank you so much!
never had this before
09-01-2009 11:06 PM
Find all posts by this user Quote this message in a reply
FidiBus Offline
Junior Member
*

Posts: 21
Joined: Aug 2009
Reputation: 0
Post: #4
RE: nightly update script won´t work
has the update script to be run in a special directory? (Launch it as “root” from your “trunk” directory.) i don´t have a "trunk" directory.
i´ve done:apt-get install subversion (not more)
any other work to before the script can run?

thank you
09-02-2009 04:51 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #5
RE: nightly update script won´t work
Why you want to use that script? I wroted for people who understand what are doing and want to follow development. But it is incomplete, is not updating all configure files, and sometime can bring a lot of trouble.
If you want to use last trunk, there is and official update procedure that can be used (ispcp-update). Please read INSTALL file for your distribution and make backups.
09-02-2009 05:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
FidiBus Offline
Junior Member
*

Posts: 21
Joined: Aug 2009
Reputation: 0
Post: #6
RE: nightly update script won´t work
not really "service minded" your answer. but ok i find my way.

thank you
09-02-2009 05:28 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #7
RE: nightly update script won´t work
(09-02-2009 05:28 AM)FidiBus Wrote:  not really "service minded" your answer. but ok i find my way.

What' not "service minded" on his answer?

If you don't know what you are doing, you better not use the NightlyUpdateScript. And your question show's that you are not knowing what you do.

Do the way sci2tec told you. Wink
09-02-2009 02:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)