10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I confess to be stuck ...
as explained here
Aliases - Bash Reference Manual
I added
shopt -s expand_aliasesto my script ... but it didn't work.
Later I've read I had to add this at the begning of my my script :
. ~/.bash_aliases(of course my aliases are in this file)
but again, the... (0 Replies)
Discussion started by: xib.be
0 Replies
2. Shell Programming and Scripting
Hi all,
I have and alias set in .profile like
alias ll='ls -la'
I am writing a shell script in which i am using "ll" but it gives command not found . Can anyone please tell me how source aliases in the script we write do i need to define it again in every script i write is there any oher... (1 Reply)
Discussion started by: firestar
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am new to Unix. I want to know how to setup aliases in Unix. Mean if i write a particular word say scripts then it should take me to scripts directory.
Kindly help. (2 Replies)
Discussion started by: amritansur
2 Replies
4. UNIX for Dummies Questions & Answers
How come if I set an alias as such:
alias dt 'date "+%Y-%m-%d %H:%M:%S"'
it will work as intended, ie the command 'dt' does prompt the date and time, but not when invoked through a script as such:
#!/bin/sh
alias dt 'date "+%Y-%m-%d %H:%M:%S"'
The OS is FreeBSD 7.1.
Thanks in advance (4 Replies)
Discussion started by: figaro
4 Replies
5. Shell Programming and Scripting
Hello:
i have several server with own etc aliases. right now i want to combine it all into a general etc aliases in a new freebsd server. cause it consist hundred thousand of record user inside how to make a shell script to combine it or configure it.
all etc aliases record example: ... (0 Replies)
Discussion started by: peterLfs
0 Replies
6. UNIX for Dummies Questions & Answers
Can any one show me how to create an alias account that silently copies local emails to the administrator (root) using a linux cmd line or GUI?
The answer needs to be very simplly explained at this stage, as I am new to the command prompt...expecialy in linux.
thanks heaps guys
Pipa:)
I... (2 Replies)
Discussion started by: Pipa
2 Replies
7. Shell Programming and Scripting
HI
I have 5000 users on sendmail server, also there entries of these users Mail ID in /etc/mail/aliases as per Diparments. Same Mail ID can occures in Diff Departments as per req.
I have to remove 500 users from server also there entry from /etc/mail/aliases file. which occures many times.
... (1 Reply)
Discussion started by: Kumarsharad
1 Replies
8. UNIX for Dummies Questions & Answers
Is there a way to view what aliases are running on a given session? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
9. Programming
Hi.
I have a C program that is using the **environ pointer and I am trying to set up aliases for a system("/bin/ksh") call. This works for other environment variables but not for the aliases. Does anyone know if this can be done? Thanks ahead of time. (1 Reply)
Discussion started by: mluey61
1 Replies
10. UNIX for Dummies Questions & Answers
I'm trying to make a script that will automatically read incoming mail, parse the recipient, then send a file off to the recipient.
(Name of file = mail.pl)
#!/usr/bin/perl
$mailDir = "/var/spool/mail/"
$user = print `cat <STDIN> | grep To: | cut -b5-`;
print `elm -s Awaiting Mail $user <... (1 Reply)
Discussion started by: ComTec
1 Replies