Dale,
You don't have the current directory "."
defined in your PATH.
Typing '.\' in front of an executable
tells the system to look in the current
directory for the executable.
Do an 'echo $PATH' to see what
your path is.
If you want to add the current directory
to you path then do the following:
PATH=.:$PATH
export PATH
To always add the currect directory to
your PATH you could add the above
to your '.bashrc' script in the your
home directory.
Kathy Bieltz
Dale kosan wrote:
> Okay, thanks for the reply, here is what I did so far:
>
> #!/bin/bash
> tar cvzf /shared/backup /home/someuser
>
> I then chmod +x
>
> When I try and run it with just backup I get the following:
>
> [dale@localhost dale]$ backup
> bash: backup: command not found
> [dale@localhost dale]$
>
> I can run it by typing: ./backup
>
> What am I doing wrong? I would also like to have this script rename the old
> backup to something different so that I can go in and delete the oldest
> backups that I dont need. How hard would this be to do? Can I also automate
> this with a cron job? Where would I look for more info on what I am trying to
> learn? Thanks for your trouble
>
> _______________________________________________
> Seawolf-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/seawolf-list
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list