You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 145 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - CVS Script Help please!!! [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
ulissesnelson
Lieutenant
Lieutenant


Joined: Apr 09, 2003
Posts: 188


PostPosted: Mon Sep 15, 2003 4:29 am Reply with quoteBack to top

Zhen-Xjell wrote:
Hi'ya you have to cvs login first and enter the password manually. Then simply never log out. Use the log in command manually from the script.

nope i must be doing sumething wrong

i used


Code:

cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs login anonymous


then

Code:

cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs checkout betaNC

and returns to me

Code:


cvs update: authorization failed: server cvs.nukecops.com rejected access to /home/cvs for user anonymous
cvs update: used empty password; try "cvs login" with a real password


HELPPP lol

im really a shell noob on this

_________________
Were You Go Today? <b>NuKe Report </b> ill Help you
Find all posts by ulissesnelsonView user's profileSend private message
XEULAS
Captain
Captain


Joined: Oct 20, 2003
Posts: 335


PostPosted: Mon Oct 20, 2003 7:57 pm Reply with quoteBack to top

Ug... I've stayed up all night working on this... stupidity is really starting to set in so forgive me if this is, likewise, stupid....

Note: I find myself wishing there was a link in admin that said "Patch Update" instead of all this shell stuff (seems that noone ever mentions for the newbies that you have to be able to shell into your account).

The QUESTION: Does EVERYONE have to have their folder named 'betaNC'? (My nuke setup WAS in 'main' but I moved it to 'betaNC' to be compliant).

The PROBLEM:

-I shelled into my account

-typed in

cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs login

-typed in anonymous for the password

-Everything is fine so far.

-typed in the update command, and my entire site was updated. Yay.

-closed my ssh session without logging out.

I put cvs -d:pserver:anonymous@cvs.nukecops.com:/home/cvs update -d in my cron.

Wouldn't work.

-I got the 'latest' shell script (I think, since there are bits and pieces across five different websites).

-My nuke directory folder is named 'betaNC' (which makes its path /home/sl/public_html/betaNC). Top portion of shell script I am using is quoted below:

Quote:
#!/bin/bash

#####################################################################
# CVS Nuke Cops Automatic Update/Status Cron Script #
# 2003-08-10 - GA Release. Understand what this does before use. #
# Copyright 2003, All Rights Reserved - Paul Laudanski / Zhen-Xjell #
# http://nukecops.com | http://computercops.biz #
#####################################################################
# NO WARRANTIES ARE PROVIDED. YOUR SYSTEM MAY BE DESTROYED. THIS #
# SCRIPT IS PROVIDED 'AS-IS'. REFER TO THE NUKECOPS.COM AUP FOR #
# USE ACCEPTANCE AND FULL DISCLAIMERS. USE SIGNIFIES AGREEMENT. $
#####################################################################

today=`date +%Y%m%d`
CVSROOT=/home/cvs
export CVSROOT

## Enter directory path to where "betaNC" resides.
## Example, if "betaNC" lives in "/home/mysite/www/betaNC", then list directory
## path as "/home/mysite/www/".

cd /home/sl/public_html/
# The following line logs into the Nuke Cops CVS Server anonymously.
cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs login

# The following line does a betaNC repository checkout. This should only be
# used for an initial checkout.
#cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs checkout betaNC

# The following line does an information update only. No changes are
# made, it serves to inform you of what would update. Look for Status Values
# of 'Needs Checkout' and 'Needs Patch'. 'Up-to-date' means your file are
# in sync with the NC CVS Repository. If you uncomment this line, ensure
# you comment out the next actual update line.
#cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs status betaNC > betaNC-$today.status

# The following line does the actual update to your site using the CVS.
cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs update -I config.php betaNC

# The following line logs out of the Nuke Cops server.
cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs logout



-The shell script is located in my nuke directory. In my CRONtab I put this:
bash /home/sl/public_html/betaNC/NC_CVS_Update.sh

BUT, here is the output I receive:

Quote:
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 2:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 13:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 14:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 15:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 16: export: `
': not a valid identifier
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 17:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 21:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 22: cd: /home/sl/public_html/
: No such file or directory
Logging in to :pserver:anonymous@cvs.nukecops.com:2401/home/cvs
CVS password: cvs login: authorization failed: server cvs.nukecops.com rejected access to
/home/cvs for user anonymous
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 25:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 29:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 36:
: command not found
cvs update: authorization failed: server cvs.nukecops.com rejected access to /home/cvs for
user anonymous
cvs update: used empty password; try "cvs login" with a real password
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 39:
: command not found
Logging out of :pserver:anonymous@cvs.nukecops.com:2401/home/cvs
cvs logout: Entry not found.
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 42:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 43:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 45:
: command not found
/home/sl/public_html/betaNC/NC_CVS_Update.sh: line 134:
: command not found



What am I doing wrong?

THANKS for any assistance!
Find all posts by XEULASView user's profileSend private messageVisit poster's website
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.583 Seconds - 91 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::