Solved

Bash Scripts for FreeBSD

Posted on 2002-03-26
2
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

728 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