|Subject:||Re: nohup doesn't accept aliases . .|
|Date:||Fri, 14 Jun 2002 08:24:23 -0600|
That would appear to be the case, I ended up simply putting the nohup command in the alias definition itself, and it works great!
Thanks for the help.
office: (801) 861-6709
cell: (801) 368-8633
fax: (801) 861-6778
Novell Inc., the leading provider of Net Business Solutions.
>>> Bob Proulx <address@hidden> 06/14/02 01:30AM >>>
> Hey, I was just trying to use nohup this way:
> nohup cvsbackupthebackup
> where cvsbackupthebackup is just an alias - it looks like it does not
> correclty interpret the alias (it's an rsync command) -
> I'd like to nohup and & my command so I can backup cvs, and logout and
> go home while it's working!
Unfortunately the shell only expands aliases when they are in the
command position. The shell does not expand aliases when they are
passed as arguments to other commands.
Suggestion: Instead of using an alias create a shell script.
rsync etc. etc. etc.
Make it executable.
chmod a+x cvsbackupthebackup
Then since it is a real command and not an alias it does not need to
be expanded. That will work as you want it to.
By the way... Expanding aliases or not is not something that the
'nohup' command can do anything about. It is a shell feature.
|[Prev in Thread]||Current Thread||[Next in Thread]|