10-25-2002
I believe your problem is that you are running a script and again starting another child process which means the parent does not have any changes.
Try setting up an alias for . ./.profile as follows:
$ alias redo='. ~/restart'
or even better
$ alias redo='. ~/.profile'
Then if you type in redo, you should get your change.
10 More Discussions You Might Find Interesting
1. Programming
i keep getting the following error with the code segment below when i try to compile the program.
parse error before '('
parse error before ')'
stray '\' in program
this is the code segment and the error is on the second line of the segment
#define DEBUG(fmt) if(traceflag) {... (1 Reply)
Discussion started by: token
1 Replies
2. Windows & DOS: Issues & Discussions
My system is combined by Win98 and sco opensever.......but when Win98 is starting .my computer doesn't respond........what can i do? (1 Reply)
Discussion started by: dingxf
1 Replies
3. UNIX for Dummies Questions & Answers
Hello:
I'm trying to run repquota -ag > /home/usersdir/repquota.txt as a daily cronjob at midnight, but the file always ends up blank.
I even tried writing a quick Perl script to e-mail me what running that command outputs, and it's nothing.
Can root run repquota as a cronjob? Do I have... (1 Reply)
Discussion started by: b416
1 Replies
4. Shell Programming and Scripting
I am trying to run the following code from a script file but it complains that syntax of (both instances of) grep is wrong.
When I copy and paste it to the terminal, it is OK. Any idea what the problem might be?
set i = `grep -c #define flags.h`
while ($i>20)
@ i--
my func (`cat... (4 Replies)
Discussion started by: barisgultekin
4 Replies
5. UNIX for Dummies Questions & Answers
Hi guys, I've been trying to unmount a floppy like this:
unmount /mnt/floppy
But then I get a "command not found" message."mount" works,but why not unmount? I've also tried "eject" but all it does is open up my cdrom drive and I tried "eject /mnt/floppy" but I get an error that says Invalid... (2 Replies)
Discussion started by: DISTURBED
2 Replies
6. Shell Programming and Scripting
I'm using the case statement in the following script and it always takes the "*" default choice while it should be "3".
I wonder why ???
dt_auj=`date +%d`
NBLOG=`ls -al /users/notes01/LOG/t*|awk '{print $7}'|grep $dt_auj|wc -l`
case $NBLOG in
1) cat ~/LOG/console-notes > $fic_tmp1 ;;
2)... (5 Replies)
Discussion started by: Nicol
5 Replies
7. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
8. Ubuntu
completion-ignore-case option doesn't work in my version:
/home/user $ echo $BASH_VERSION
3.2.48(1)-release
/home/user $ ls -l *
-rw-r--r-- 1 user user 0 2009-10-18 00:09 somefile
-rw-r--r-- 1 user user 0 2009-10-18 00:09 Somefile
/home/user $ set completion-ignore-case on
But when I... (2 Replies)
Discussion started by: Sapfeer
2 Replies
9. Shell Programming and Scripting
I have the following and for some reason I can't have two options together.
I mean if I choose -u and -p it won't work... why?
#!/bin/bash
resetTime=1
mytotalTime=0
totalHour=0
totalMin=0
averagemem=0
finalaverage=0
times=0
function usage()
{
cat << EOF
USAGE: $0 file
EOF
} (10 Replies)
Discussion started by: bashily
10 Replies
10. Shell Programming and Scripting
greetings,
the following code isn't working as i expect it to. the first dbl brackets do but the second set gets ignored. ie: if i'm on t70c6n229 it echoes "Something" and i expect it not to. what am i missing?
if " ]] || " ]]; then
echo "Something"
fi
thanx! (9 Replies)
Discussion started by: crimso
9 Replies
ALI(1) [nmh-1.5] ALI(1)
NAME
ali - list mail aliases
SYNOPSIS
ali [-alias aliasfile] [-list | -nolist] [-normalize | -nonormalize] [-user | -nouser] [-version] [-help] [aliases ...]
DESCRIPTION
Ali searches the named mail alias files for each of the given aliases. It creates a list of addresses for those aliases, and writes that
list on standard output. If no arguments are given, ali outputs all alias entries.
By default, when an aliases expands to multiple addresses, the addresses are separated by commas and printed on as few lines as possible.
If the -list option is specified, then when an address expands to multiple addresses, each address will appear on a separate line.
The switch -user directs ali to perform its processing in an inverted fashion: instead of listing the addresses that each given alias
expands to, ali will list the aliases that expand to each given address. If the -normalize switch is given, ali will try to track down the
official hostname of the address.
The files specified by the profile entry "Aliasfile" and any additional alias files given by the -alias aliasfile switch will be read.
Each alias is processed as described in mh-alias(5).
FILES
$HOME/.mh_profile The user profile
/etc/passwd List of users
/etc/group List of groups
PROFILE COMPONENTS
Path: To determine the user's nmh directory
Aliasfile: For a default alias file
SEE ALSO
mh-alias(5)
DEFAULTS
`aliasfiles' defaults to /etc/nmh/MailAliases
`-nolist'
`-nonormalize'
`-nouser'
CONTEXT
None
BUGS
The -user option with -nonormalize is not entirely accurate, as it does not replace local nicknames for hosts with their official site
names.
MH.6.8 11 June 2012 ALI(1)