02-25-2004
Quote:
I would like to "install" some shell scripts, so that they are always available for execution (for me only), and preferably so that they can be called by simply typing their filename (plus optional parameters).
I don't want to type ./filename or something.
Put them in a new directory under your home directory - add that new directory to your path with your .profile or shell . file.
Quote:
Also, I'd be interested to learn how I can make these scripts available to everyone (but otherwise as above). This would obviously mean storing them in a commonly accessible location -- again, I'd like to know where it's good practice to put them. Plus, I'd need something else than ~/.bashrc.
Hmmm, I don't use your OS but in any you will find different places that are normal for inclusion as a directory where everyone can access scripts - it just matters what we were taught - it only matters that you don't start giving access to directories that users should not be running/changing scripts in. You also don't want to put them where the OS puts things only for the fact that an upgrade may delete them. Using /usr/local/bin or /usr/local/sbin is what we use at my company but I have also seen /opt directories created for the same purpose - as long as it's added to the environment PATH you would have no problem.
10 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
I wanna know what Panther (The Next Major Release Of OS X)
Due Date: around August
I predict that X11 will be released in a new Full stable version in the new OS X (No new revelation)
And Safari (Apple's FAST Internet Browser) will be implemented in Full...
I'm Guessing that the new G5... (0 Replies)
Discussion started by: DonJawz
0 Replies
2. Shell Programming and Scripting
Hi,
I need a shell script that when run should be able to find the geographical location of the system.
can anyone help me with this?
Thanks,
Sundeep (1 Reply)
Discussion started by: eamani_sun
1 Replies
3. Shell Programming and Scripting
Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies
4. Shell Programming and Scripting
Hi,
On the server, we have app log files in this location /app/logs/error.log
On the same server, in a real time, we would like to replicate that into /var/ directory.
if someone has already done this, please share the script.
Thanks in advance. (4 Replies)
Discussion started by: lookinginfo
4 Replies
5. Shell Programming and Scripting
Hi,
I am using Solaris 10 OS and trying to create shell script that can add input at certain location into a file.
The input that I am trying to put is new domain name
e.g
@newdomain.com
the file contains,
more test01.out
user/zzzz786@st.com/INBOX
user/zzzz@po.com/INBOX... (8 Replies)
Discussion started by: Mr_47
8 Replies
6. Shell Programming and Scripting
Hi
This is my third past and very impressed with previous post replies
Hoping the same for below query
How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies
7. Shell Programming and Scripting
Hello.
I want to to backup some "default:" values from a file do some other job and after restore that "default:" values back.
The problem is that the source and destination file has a lot of default: strings in it but with different values...
So..
Here is an example:
A part of my source... (6 Replies)
Discussion started by: ausdim
6 Replies
8. Shell Programming and Scripting
Hi All,
i'm trying to copy the 1.txt files (sample files) in to different path location using the below command.
But it is not copying the files , when i tried for single location able to copy the file.
can any one please assist here.
Please find the below path :-
/ckr_mkr1/licencekey... (2 Replies)
Discussion started by: venkat918
2 Replies
9. Shell Programming and Scripting
Is there any possible way transfering the file from unix to shared location using shell script.
i had created the batch script to fetch the files from unix to shared location and it works fine. Due to some problem in windows unable to transfer the file to shared location automatically. can anyone... (2 Replies)
Discussion started by: venkat918
2 Replies
10. UNIX for Beginners Questions & Answers
Hi ALL,
I am trying to find the installed tomcat version and location of the server.xml file to get the tomcat port number.
Using below script to do that.
#!/usr/bin/env bash
var1=$(find / -name "version.sh" ! -size 0 2>&1 |egrep -v "tmp|docker")
for loc1 in $var1
do
... (1 Reply)
Discussion started by: sravani25
1 Replies
LEARN ABOUT DEBIAN
go::metadata::panther
GO::Metadata::Panther(3pm) User Contributed Perl Documentation GO::Metadata::Panther(3pm)
NAME
GO::Metadata::Panther - Species info for data used by Panther Clusters
SYNOPSIS
use GO::Metadata::Panther qw/@species/;
for my $species (@species) {
# do something
}
Or
use GO::Metadata::Panther;
my $s = GO::Metadata::Panther->code('YEAST');
DESCRIPTION
Accesses information related to species in the Panther seq2pthr.gz file. This file can be fetched from:
<ftp://ftp.pantherdb.org/genome/pthr7.0/>
Each item in the exportable @species array contains a hash reference for each species. The items in that hash are:
code
A scalar or the UniProt species code.
ncbi_taxa_id
A scalar reference of NCBI taxa ids that items in the GO database match. This should only be one id, but sometimes it's useful to scan
multiple.
For a complete list of every UniProt species matched to a NCBI taxa <http://www.uniprot.org/docs/speclist>
Constructors
The constructors scans @species for the requested data and returns the object that matches the data. Otherwise it returns a false false.
my $s = GO::Metadata::Panther->code(unicode_species_code)
Return an object filled with the species reference from the UniProtKB species code.
my $s = GO::Metadata::Panther->ncbi(ncbi_taxa_id)
Greate an object from the ncbi_taxa_id.
Function
Functions that can be used outside of the OO interface.
GO::Metadata::Panther::codes()
Returns a list of all UniProt species codes in @species.
GO::Metadata::Panther::valid_codes(unicode_species_code)
Send it a list of panther Unicode codes, returns true if they are all present in @species. Othewise returns false.
OO Function
$s->ncbi_ids()
Returns the list of NCBI taxa identifiers associated with the UniProt species code. In a perfect word this will only every return one
value. In any case, the first value will be the actual numeric identifier associated.
AUTHOR
Sven Heinicke <sven@genomics.princeton.edu</gt>
perl v5.14.2 2010-07-08 GO::Metadata::Panther(3pm)