Sponsored Content
Top Forums Shell Programming and Scripting Question on tweaking the PATH variable to allow the world to run my executable script Post 302406805 by amitranjansahu on Wednesday 24th of March 2010 12:50:39 AM
Old 03-24-2010
Sorry i forgot about the background scripts.

In this case the 1 st solution will only work

in users .profile file in home dir add the export command

export PATH=$PATH:/data/misc/scripts/dev

So as all your scripts are in the folder /data/misc/scripts/dev the shell will find all the scripts while executing.


For softlink check the man pages of "ln"
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I make a cgi script World-executable

I'm trying to set up a form mail script on a website that when Submitted, a cgi script is executed and a perl translator (located in a secured and inaccessible folder) translates the script. After speaking to my hosting provider, I was told to "Telnet into the system and make the script... (2 Replies)
Discussion started by: tylerl
2 Replies

2. UNIX for Advanced & Expert Users

process executable file full path

hi guys i give "ps -ef | grep some_executable_file" on the command line. this "some_executable_file" resides on many paths which r included in the PATH environment variable, so the output depicts only "some_executable_file" in the COMMAND column. how can i get the full path? thanx (3 Replies)
Discussion started by: xtrix
3 Replies

3. Shell Programming and Scripting

script run when executable is launched

I need to know how to have a BASH script run every time Firefox is launched, what is the simplest way to do this? (1 Reply)
Discussion started by: glev2005
1 Replies

4. Shell Programming and Scripting

Automatically select records from several files and then run a C executable file inside the script

Dear list its my first post and i would like to greet everyone What i would like to do is select records 7 and 11 from each files in a folder then run an executable inside the script for the selected parameters. The file format is something like this 7 100 200 7 100 250 7 100 300 ... (1 Reply)
Discussion started by: Gtolis
1 Replies

5. UNIX for Dummies Questions & Answers

PATH variable and script execution

Hello everyone, I wrote a simple script (ksh) that I would like to be able to execute no matter where in the directory structure I am sitting at. I typed echo $PATH to retrieve my path info and looking at that I decided the directory where to place my script. I copied the scripts to that... (3 Replies)
Discussion started by: gio001
3 Replies

6. Shell Programming and Scripting

how to run an already made script run against a list of ip addresses solaris 8 question

how to run an already developed script run against a list of ip addresses solaris 8 question. the script goes away and check traffic information, for example check_GE-VLANStats-P3 1.1.1.1 and returns the results ok. how do I run this against an ip list? i.e a list of 30 ip addresses (26 Replies)
Discussion started by: llcooljatt
26 Replies

7. UNIX for Dummies Questions & Answers

Getting correct path to run appropriate script

I have tcsh scripts on path /home/chrisd/tatsh/trunk/hstmy/bin/tcsh/ I want to run the script from within another script. Suppose I go to directory /home/chrisd/tatsh/trunk/hsdata/n02/terr0.25/darwin and want to run checksrdist.tcsh So I do cd ... (1 Reply)
Discussion started by: kristinu
1 Replies

8. Shell Programming and Scripting

Script working when run manually but not in crontab showing path not found

i have a script running using variable defined in .profile when i run that script manually its working but when i run the same script through cron its giving path not found I had defined path in .profile (3 Replies)
Discussion started by: raj_saini20
3 Replies

9. Solaris

Find path of executable having problem

Hi cannot find the path to a running process on a host. I looked and tried some suggestions in forums to no avail. can someone please help? I need to know where this process is starting from as we have several versions in multiple directories --------- Process name 1201 1 0 Feb 14 ?... (14 Replies)
Discussion started by: mnassiri
14 Replies

10. Solaris

Finding the path to an executable , installed package

Hi all, Recently i wanted to see if i have openssl installed in my system (solaris 10), so i do this (not sure if this is the right way to do this) pkginfo -i | grep -i "ssl" system SUNWopenssl-commands OpenSSL Commands (Usr) system SUNWopenssl-include ... (3 Replies)
Discussion started by: javanoob
3 Replies
DH_INSTALLCATALOGS(1)						     Debhelper						     DH_INSTALLCATALOGS(1)

NAME
dh_installcatalogs - install and register SGML Catalogs SYNOPSIS
dh_installcatalogs [debhelperoptions] [-n] DESCRIPTION
dh_installcatalogs is a debhelper program that installs and registers SGML catalogs. It complies with the Debian XML/SGML policy. Catalogs will be registered in a supercatalog, in /etc/sgml/package.cat. This command automatically adds maintainer script snippets for registering and unregistering the catalogs and supercatalogs (unless -n is used). These snippets are inserted into the maintainer scripts and the triggers file by dh_installdeb; see dh_installdeb(1) for an explanation of Debhelper maintainer script snippets. A dependency on sgml-base will be added to ${misc:Depends}, so be sure your package uses that variable in debian/control. FILES
debian/package.sgmlcatalogs Lists the catalogs to be installed per package. Each line in that file should be of the form "source dest", where source indicates where the catalog resides in the source tree, and dest indicates the destination location for the catalog under the package build area. dest should start with /usr/share/sgml/. OPTIONS
-n, --no-scripts Do not modify postinst/postrm/prerm scripts nor add an activation trigger. NOTES
Note that this command is not idempotent. dh_prep(1) should be called between invocations of this command. Otherwise, it may cause multiple instances of the same text to be added to maintainer scripts. SEE ALSO
debhelper(7) /usr/share/doc/sgml-base-doc/ AUTHOR
Adam Di Carlo <aph@debian.org> 11.1.6ubuntu2 2018-05-10 DH_INSTALLCATALOGS(1)
All times are GMT -4. The time now is 07:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy