Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Misc > Re: cron on 10....
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 31 of 68 Topic 6031 of 6370
Post > Topic >>

Re: cron on 10.5.2 server

by Jolly Roger <jollyroger@[EMAIL PROTECTED] > May 2, 2008 at 05:53 PM

In article <ru2n141sc4cosquiqrhgin3o83uiqc4otq@[EMAIL PROTECTED]
>,
 Howard Brazee <howard@[EMAIL PROTECTED]
> wrote:

> On Fri, 02 May 2008 14:24:50 -0500, Jolly Roger <jollyroger@[EMAIL PROTECTED]
>
> wrote:
> 
> >Personally, I'd just skip TextEdit completely and use a plain text 
> >editor that is designed for editing such files, like TextWrangler,
which 
> >is free anyway, optionally installs an 'edit' command-line tool that 
> >allows TextWrangler to function as a replacement to various
command-line 
> >editors.
> >
> >.bashrc and .bash_profile both belong in your home directory 
> >(/Users/you). So open TextWrangler, and choose File > Open Hidden from 
> >the menu bar to look and see if you already have a ~/.bashrc or 
> >~/.bash_profile.
> 
> On my computer (not the computer of the guy who wanted my help) I
> opened TextWrangler and found a .bash_history and a bash_profile file
> (in HBrazee).   The latter I created myself and it consists of one
> line saying:
> ls
> 
> I was hoping that when I started Terminal, I would see ls run, but
> nothing happens.   So I try running it (obviously incorrectly): 
> 
> Last login: Thu May  1 19:48:45 on console
> bHoward-Brazees-Computer:~ HBrazee$ bash_profile
> -bash: bash_profile: command not found
> Howard-Brazees-Computer:~ HBrazee$ 

You need to learn more about the commind-line environment. ; )

1. The BASH profile file should be named .bash_profile - note the period 
character at the beginning. If the file is not named correctly, and does 
not exist in your home folder, BASH will not read it.

2. Why are you trying to run a script? My instructions showed you how to 
set up .bash_profile and .bashrc - those are not your average, ordinary 
shell scripts - in the sense that the BASH environment looks 
specifically for these files during initialization of your shell 
session. In other words, there are certain things that are appropriate 
to put in these files, and 'ls' isn't one of them. If you want to write 
a script, you really shouldn't use a name like .bash_profile, because 
that name is reserved for BASH in this context. Instead, call it 
something like "my_script.sh". The ".sh" filename extension denotes 
shell scripts.

3. If you create a script file from scratch, chances are it won't be 
executable by you or any other user or group until you make it so. To 
make a script file executable, you would need to issue the 'chmod +x 
/path/to/script' command.

4. To run any executable file (including a shell script) that is not in 
one of the paths listed in your PATH environment variable, you'll need 
to (a) use 'cd' to change to the directory containing the executable 
file, then (b) issue the './scriptname.sh' command to run it from within 
the current directory. Remember, on the command line, . means "the 
current directory, just as .. means "the parent of the current 
directory".

-- 
Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.

JR
 




 68 Posts in Topic:
cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-21 11:49:24 
Re: cron on 10.5.2 server
=?utf-8?B?QW5kcsOp?= Berg  2008-04-21 21:45:35 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-22 00:13:07 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-22 00:02:18 
Re: cron on 10.5.2 server
=?utf-8?B?QW5kcsOp?= Berg  2008-04-22 07:04:07 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-22 13:33:52 
Re: cron on 10.5.2 server
=?utf-8?B?QW5kcsOp?= Berg  2008-04-23 06:45:51 
Re: cron on 10.5.2 server
Dave Seaman <dseaman@[  2008-04-23 12:09:23 
Re: cron on 10.5.2 server
=?utf-8?B?QW5kcsOp?= Berg  2008-04-23 17:31:12 
Re: cron on 10.5.2 server
Lewis <g.kreme@[EMAIL   2008-05-02 08:09:13 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-22 13:32:05 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-22 23:55:44 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-23 11:28:04 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-04-23 08:45:13 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-23 14:46:54 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-04-23 16:12:10 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-24 12:42:20 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-04-24 10:05:31 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-24 15:24:54 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-04-24 10:36:11 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-04-24 16:50:04 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-04-24 11:40:35 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-04-24 18:04:11 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-04-24 16:06:41 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-04-25 07:04:50 
Re: cron on 10.5.2 server
Lewis <g.kreme@[EMAIL   2008-05-02 08:19:31 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 09:02:57 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-02 14:24:50 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 14:09:45 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 15:51:31 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-02 17:53:42 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 18:52:23 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-02 21:02:55 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 19:02:02 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-02 21:01:56 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-02 20:13:10 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-03 07:36:47 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 14:40:13 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-03 08:01:06 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 16:58:16 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-03 12:29:01 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 14:40:19 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-03 13:55:33 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 14:59:36 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-04 07:15:10 
Re: cron on 10.5.2 server
Howard Brazee <howard@  2008-05-05 08:06:51 
Re: cron on 10.5.2 server
Lewis <g.kreme@[EMAIL   2008-05-07 16:33:46 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 06:34:35 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 00:48:49 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 06:50:59 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 00:57:18 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 07:34:34 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 02:20:35 
Re: cron on 10.5.2 server
Chris Ridd <chrisridd@  2008-05-03 08:47:19 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-03 02:52:11 
Re: cron on 10.5.2 server
Lewis <g.kreme@[EMAIL   2008-05-07 16:30:21 
Re: cron on 10.5.2 server
Jolly Roger <jollyroge  2008-05-02 14:04:19 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-25 00:55:51 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-25 02:17:03 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-23 23:46:10 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-24 12:37:21 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-24 13:27:35 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-25 01:42:37 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-25 02:16:02 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-25 02:44:27 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-25 22:43:14 
Re: cron on 10.5.2 server
Robert Peirce <bob@[EM  2008-04-26 00:42:56 
Re: cron on 10.5.2 server
Bob Harris <nospam.New  2008-04-25 23:23:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 9:06:17 CDT 2008.