Sponsored Content
Full Discussion: Source
Top Forums Shell Programming and Scripting Source Post 302318640 by deaconf19 on Friday 22nd of May 2009 02:49:50 AM
Old 05-22-2009
Source

I have a script in /etc/rc2.d that needs to run on boot up

the file looks like this
Code:
#!/sbin/sh
source /abc/scripts/test_env.sh
/abc/xyz/run

I need to source the test_env.sh script they are both bash how do i do that?
'source /abc/scripts/test_env.sh'

I am not too sure
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

qt from source

i'm installing qt from source, and while making i get an error having to do with a "pthread library." what libraries do i need to install for qt to compile, and where can i get them? (1 Reply)
Discussion started by: nydel
1 Replies

2. Solaris

Solaris Source

Back some time ago, Sun had a pay/download Solaris source program. I had participated, but have since lost the source. Does anyone have such that they could make available. Thanks much, Keith (3 Replies)
Discussion started by: kduffin
3 Replies

3. IP Networking

source quelch

I'm sorry in advance for not having all the information that may be needed to answer this post. At my company we are trying to transfer a large amount of data from an NT server to a HP-UX server using ftp. The problem is that when transferring data we are getting extremely slow speeds of... (1 Reply)
Discussion started by: dangral
1 Replies

4. Shell Programming and Scripting

. and source

What's the difference of using "." and "source", such as ". .bashrc" and "source .bashrc"? (1 Reply)
Discussion started by: learn
1 Replies

5. Shell Programming and Scripting

read the source name

Hi I'm trying to write a script in which,if i log onto a particular server,the script should automatically find the server i'm on (which is the source server).We can find it frm the path /transfer/common/utilities/env_params.txt please help me as to how start with this,shall i use the read cmmnd... (1 Reply)
Discussion started by: bkan77
1 Replies

6. UNIX Benchmarks

BM source download?

The link to download the source is broken. It's putting me back to the beginning forum page. (2 Replies)
Discussion started by: thywyn
2 Replies

7. UNIX for Advanced & Expert Users

Source Output

Hi all. I am trying to include the output of a command in a shell script (sh shell) but with no success. Scenario is this: I have some XML and binary configuration files and I have an executable who writes a file with some shell variables I usually include in my shell script (executable... (7 Replies)
Discussion started by: ticiotix
7 Replies

8. Shell Programming and Scripting

Ps command source.

Dear friends, I am using SCO Openserver 5.0.7. Where does the ps -ef command pick the information from? Is it stored in some file? Also, the ps -ef command or the ps -eo args command displays truncated information. How to get the complete expanded output without truncation? Thanks in... (8 Replies)
Discussion started by: sabu
8 Replies

9. Shell Programming and Scripting

Source .sh file

Dear all, For setting up my working environment, I need to source some files. What i usualy do is to do it manually, cd /setup source setup.sh it take care of everything and I am able to run the commands like root. As it was manual task every time, I defined this in .bashrc itself like... (12 Replies)
Discussion started by: emily
12 Replies
SYSTEMD-RC-LOCAL-GENERATOR(8)				    systemd-rc-local-generator				     SYSTEMD-RC-LOCAL-GENERATOR(8)

NAME
systemd-rc-local-generator - Compatibility generator for starting /etc/rc.local and /usr/sbin/halt.local during boot and shutdown SYNOPSIS
/lib/systemd/system-generators/systemd-rc-local-generator DESCRIPTION
systemd-rc-local-generator is a generator that checks whether /etc/rc.local exists and is executable, and if it is pulls the rc-local.service unit into the boot process. This unit is responsible for running this script during late boot. Note that the script will be run with slightly different semantics than the original System V version, which was run "last" in the boot process, which is a concept that does not translate to systemd. The script is run after network.target, but in parallel with most other regular system services. systemd-rc-local-generator also checks whether /usr/sbin/halt.local exists and is executable, and if it is pulls the halt-local.service unit into the shutdown process. This unit is responsible for running this script during later shutdown. Support for both /etc/rc.local and /usr/sbin/halt.local is provided for compatibility with specific System V systems only. However, it is strongly recommended to avoid making use of these scripts today, and instead provide proper unit files with appropriate dependencies for any scripts to run during the boot or shutdown processes. systemd-rc-local-generator implements systemd.generator(7). SEE ALSO
systemd(1), systemctl(1) systemd 237 SYSTEMD-RC-LOCAL-GENERATOR(8)
All times are GMT -4. The time now is 07:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy