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 Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
error ORA-06512 while running query in script shivanete Shell Programming and Scripting 3 12-04-2008 07:45 AM
error in in running script aama100 Shell Programming and Scripting 2 10-20-2008 01:52 AM
Error while running the script through cron jobs .Please help me on this Sheethal UNIX for Dummies Questions & Answers 1 09-30-2008 08:31 AM
Error while running your script -- Balamv balamv Shell Programming and Scripting 1 06-06-2008 08:37 AM
Error while running a script HarryTellegen UNIX for Dummies Questions & Answers 5 02-05-2002 02:58 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-04-2009
iamgeethuj iamgeethuj is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 38
Error occured while running a script

Hi All,

In my application, I'm getting an error as type mismatch

Let me now explain the scenario,

I ran a shell script which calls some other scripts. All these scripts uses the environment variables.

Take for example, this script uses a variable 'PathDir'. I initiallized the value to that variable before i ran the initial script.

While the process was running, I gave as '> echo $PathDir ' by mistake in the command prompt of another window.

Later I could find the script was interuppted half the way with the error message as type mismatch and the process was stopped without completion.

My question is, is that line which I gave by mistake would create any problem?

I'm not running this script for the first time. I had run it so many times successfully for years. This is the first time I'm facing this problem.

If my explaination is not enough for you to catch the point, kindly lemme know.

Thanks for all you help in advance.
  #2 (permalink)  
Old 09-06-2009
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 453
As per the explanation and the command you execute nothing harm should happen. But really, I cannot understand exactly what you are meaning.

But i just tried what ever you explained, and got the following script.
Code:
while [ true ]
do
echo $ttt
sleep 5
done
Executed the above in the background, and tried doing what ever you said, but nothing affected. It always printed the ttt value, as it should. Because i exported it, and then invoked the script so it will get that value. After invoking if i change the value of that variable in the parent shell it wont affect.

Hope this helped, else come up with more clearer data.
  #3 (permalink)  
Old 09-09-2009
iamgeethuj iamgeethuj is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 38
Thank you!!!

The problem is solved.
Reply

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 03:49 PM.


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