LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2013, 08:09 AM   #16
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 498

Rep: Reputation: 137Reputation: 137

From post #11

Line 19 & 33:
Replace 'foo' with 'function'

Line 20:
Replace '[ ]' with '[[ ]]'
(have consistency in coding)

Line 38 & 40:
; should come after "
Code:
if [[ $? -ne 0 ]]; then echo "Poblems Creating Backup File"; fi
 
Old 06-18-2013, 10:16 AM   #17
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Rep: Reputation: 42
Quote:
Originally Posted by Chris1969 View Post
cbtshare your last comment is not really constructive, this is not homework and this is not a web script, any ways if you have nothing else to say, please dont come here to increase your posts amount.
How is that not constructive???I am telling you how to not look inane,you put "foo" in a script and expect it to work lmaoo...If you are embarrassed too bad, maybe next time you should ask for help from where you stole the script.so I wasnt increasing post count when I was helping you huh?? only when I said something you didnt like?? loll..your a joke

Last edited by cbtshare; 06-18-2013 at 10:24 AM.
 
Old 06-18-2013, 02:54 PM   #18
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by cbtshare View Post
How is that not constructive???I am telling you how to not look inane,you put "foo" in a script and expect it to work lmaoo...If you are embarrassed too bad, maybe next time you should ask for help from where you stole the script.so I wasnt increasing post count when I was helping you huh?? only when I said something you didnt like?? loll..your a joke
Your post #13 is this thread wasn't really constructive. The original poster is asking questions because he wants to learn. When learning, it's natural that you'll have some problems with the things your're working on.

However, some of your other contributions to this thread were indeed useful. Please keep it this way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Me: Please syntax error near unexpected token `|' pathrosa Linux - Newbie 4 11-08-2012 06:18 PM
syntax error near unexpected token `else' dnaqvi Linux - General 5 12-08-2010 04:37 AM
Syntax error near unexpected token fi Nortekman Linux - Newbie 8 02-27-2009 04:48 PM
syntax error near unexpected token -what does this mean? rmnature Linux - Newbie 5 02-14-2009 09:19 AM
syntax error for unexpected token `(' Steve Spurr Linux - Newbie 6 09-22-2006 09:19 AM


All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration