Solved

Bash Scripts for FreeBSD

Posted on 2002-03-26
2
209 Views
Last Modified: 2010-04-21
Anyone know of a good resource for shell scripts?  

I'd like to get a script to use as my .profile which already has some of the stuff I'd like (paths, prompts, etc.), and then further tweak it with stuff specific to my system.
0
Comment
Question by:Zoplax
2 Comments
 
LVL 4

Accepted Solution

by:
IainHere earned 50 total points
ID: 6897001
I don't think I understand the question.  Are you only looking for a sample .profile?  Well, there is one here

http://www.utstat.toronto.edu/utstat/sample.profile

it is not specific to FreeBSD, but bsh is bsh is bsh.  The reason I think I might be missing a trick is that there should be a default .profile, copied from /etc/profile (I think), every time you add a new user.  Anything on top of that would be specific to your machine and user, which is why it is not included in the default one.

A shell script is not the same thing as a login script.  Login scripts set preferences, shell scripts are treated like programs.  You can put scripting into your profile, but it is not usually done.  

Examples of shell scripts: http://www.mcsr.olemiss.edu/unixhelp/scrpt/scrpt2.x.html
0
 
LVL 6

Author Comment

by:Zoplax
ID: 6897135
Thanks; that example will work well as a starting point for my .profile.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
need process to patch debian offline without internet 7 224
LDAP server on Linux Redhat 6 2 492
shell script working with --daemon 18 93
Linux Search 3 66
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now