The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Wierd C program. Help Needed karthikb23 High Level Programming 16 11-16-2007 02:36 PM
Wierd thing about FSs and VGs mhenryj AIX 4 11-13-2007 04:42 PM
Wierd results with awk amatheny Shell Programming and Scripting 2 11-01-2007 06:12 PM
Wierd boot-up sequence nitinp82 UNIX for Dummies Questions & Answers 1 02-01-2007 04:40 PM
wierd sparc 5 dozy SUN Solaris 5 10-13-2003 10:45 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-03-2002
lesstjm lesstjm is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 59
Unhappy Wierd Message????

I am getting this message when I run my script.

$ runscript.sh

Not connected to any service!


Here is the beginning of the script:

# 1 - failure
#
# variable declaration
FILEDATE=`date +"%Y%m%d"`

Not connected to any service!


Right after the FILEDATE gets loaded I get that weird message. Does anyone know what that means??
  #2 (permalink)  
Old 01-03-2002
peter.herlihy peter.herlihy is offline
Registered User
  
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
Question

Just a thought - do you have any variables in your PATH env?

Echo $PATH to check this - then double check date is there - by typing "which date"

Probably not it - but good thing to check.
  #3 (permalink)  
Old 01-03-2002
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 499
FILEDATE=`date +"%Y%m%d"`

Try to refrain from using variable names in CAPS.
I've notived that a lot of System Enviroment variables are set this way.
Try Fdate as a variable instead.
  #4 (permalink)  
Old 01-04-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
At the very top of the script, (underneath the #!/bin/sh, or similar) put the command:
set -x

That will print out everything the script does, as it does it, so you can see exactly where this error is happening...
  #5 (permalink)  
Old 01-04-2002
lesstjm lesstjm is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 59
Smile dumb mistake

I figured out my problem. Somehow I removed one of the # signs in front of one of my comments. Sorry to have wasted your time but I appreciate the help.
  #6 (permalink)  
Old 01-04-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Not wasted time!
A chance for us all to learn!

Glad you got it figured out
  #7 (permalink)  
Old 01-04-2002
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 499
Infact, I'm sure everyone's done the same at some stage of their learning.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0