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 > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Automatically Running Scripts jeffreydavisjr UNIX for Dummies Questions & Answers 4 11-19-2008 05:05 AM
Running shell scripts from web browser corleone Shell Programming and Scripting 7 07-31-2006 11:11 PM
batch file not running after implement dummy shell DarReNz Shell Programming and Scripting 2 01-18-2006 09:34 PM
running vendor shell scripts Javagate UNIX for Dummies Questions & Answers 1 04-13-2004 02:07 PM
Cron running shell scripts. cfoxwell UNIX for Dummies Questions & Answers 3 09-26-2001 11:35 AM

Closed Thread
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-17-2006
ritzwan0 ritzwan0 is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 4
Running shell scripts automatically without using Batch or at commands

I have been trying to run a unix script which contains many sql statements.I need to run this script every monday morning. I tried to run on command prompt, it works fine. But while I run it via batch or at command., it returns with library module could not be loaded (libcompat.1.o could not be loaded). I know it is an Environment problem. I contacted my administrator, he doesn't want to change environmental settings. Is there any way (some script to automate it with do-while loop on date with nohup.. something like it) or modification in script (eg. embedding Environmental settings in script itself) so that it could run in background while i log off or use it via batch command.
  #2 (permalink)  
Old 09-17-2006
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,726
You know it works for you. re-create your PATH and LD_LIBRARY_PATH (or SHLIB_PATH) environment variables in the script you want to run with at.
  #3 (permalink)  
Old 09-17-2006
grumpf grumpf is offline
Registered User
  
 

Join Date: May 2006
Posts: 101
see: man ld.so
perhaps LD_PRELOAD can help
  #4 (permalink)  
Old 09-17-2006
ritzwan0 ritzwan0 is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 4
Re: Adding PATH and LD_LIBRARY_PATH

Hi Jim. Thanks for Help. Only thing I need to know is whether I have to use same existing PATH and LD_LIBRARY_PATH which is set right now or add some new lines to existing PATH and LD_LIBRARY_PATH for the script to run?
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 05:36 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