Sponsored Content
Full Discussion: Unalias ls and vi
Operating Systems Linux Red Hat Unalias ls and vi Post 302900793 by islanderman on Thursday 8th of May 2014 06:36:59 PM
Old 05-08-2014
Unalias ls and vi

I have a question on issuing the unalias in my .profile. I want to turn off color in both my ls command and using vi to edit, and when I set these 2 statements in my .profile it accomplishes that task.

unalias ls
unalias vi

However, a few of my crontab jobs require me to fire off the job with my .profile in the crontab entry. And when that happens I am getting an email kicked back saying:

~/.profile: line 41: unalias: vi: not found
~/.profile: line 42: unalias: ls: not found

If I just execute the . ./.profile I get no errors. So why am I getting the email kickback and what is the proper way to set it? Thanks.
This User Gave Thanks to islanderman For This Post:
 
AA-AUTODEP(8)                                                        AppArmor                                                        AA-AUTODEP(8)

NAME
aa-autodep - guess basic AppArmor profile requirements SYNOPSIS
aa-autodep <executable> [<executable> ...] DESCRIPTION
aa-autodep is used to generate a minimal AppArmor profile for a set of executables. This program will generate a profile for binary executable as well as interpreted script programs. At a minimum aa-autodep will provide a base profile containing a base include directive which includes basic profile entries needed by most programs. The profile is generated by recursively calling ldd(1) on the executables listed on the command line. BUGS
This program does not perform full static analysis of executables, so the profiles generated are necessarily incomplete. If you find any bugs, please report them at <http://https://bugs.launchpad.net/apparmor/+filebug>. SEE ALSO
apparmor(7), apparmor.d(5), aa-complain(1), aa-enforce(1), aa-disable(1), aa_change_hat(2), and <http://wiki.apparmor.net>. AppArmor 2.7.103 2012-06-28 AA-AUTODEP(8)
All times are GMT -4. The time now is 08:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy