Hi, I'm very new to Unix, but have been given a command to type in which is :
this command is quite a basic one and sends an email containing the contents of the file "success.txt" to whatever email I put in with the subject of the email after the -s and works fine. What I would like to do is replace the subject of the email with the current folder name, but don't want to type it in directly I want Unix to enter the follder name automatically, is this possible, maybe by using the "pwd" command?
If you're using a shell that accepts basic Bourne shell syntax (such as a Bourne shell, bash, or ksh), you can just use:
Hi,
I am unable to see all files in a current directory when use "ls -lrt" command
it is giving error message as below ( I think this current directory is having about 500 files)
<CONTROL /home/ckanth/sri>ls -lrt
UX:ls: ERROR: Out of memory: Insufficient or invalid memory
But when i... (3 Replies)
Hi,
when I execute some simple commands on my solaris system, I am getting the following warning message:
Could anybody tell me what could be the reason
Ex:- If I give the command,
which ls
Warning: cannot determine current directory
... (15 Replies)
I want to perform a task on all the files in the current directory but I'd like to loop through them one at a time. How do I tell it to give me the first filename? (2 Replies)
Hi,
Am trying for a script which should delete more than 15 days older files in my current directory.Am using the below piece of code:
"find /tmp -type f -name "pattern" -mtime +15 -exec /usr/bin/ls -altr {} \;"
"find /tmp -type f -name "pattern" -mtime +15 -exec /usr/bin/rm -f {} \;"
... (9 Replies)
Hi All
I was wondering what is the most efficient way to find files in the current directory(that may contain 100,000's files), that meets a certain specified file type and of a certain age.
I have experimented with the find command in unix but it also searches all sub directories. I have... (2 Replies)
I wanna make a backup tarball. I wanna write a script that makes tarball of the current directory.
There are lots of files so I cant type all files, I wanna make the tarball by excluding few files.
Like there 1000 files in a directory I wanna create a tarball containing 98 files of that... (1 Reply)
Hello,
I want to use the string with the current directory in my awk command.
I tried: 'pwd=system("pwd")'
but it doesn't work. can please help somebody? (2 Replies)
Hi all,
How do I print the name of my current working directory only to screen?
Not pwd!
For example, if I was in /home/work I am looking for 'work' only (4 Replies)
I wanted to send an email to the client whenever there is failed record created in a /feed/HR-76/failed folder after processing of feed file.
I can find out with the help of below script that what is the new file created but that file didn't make just 15 minutes before.
... (1 Reply)
Discussion started by: puneetkhullar
1 Replies
LEARN ABOUT DEBIAN
vmsmaild
VMSMAILD(8) System Manager's Manual VMSMAILD(8)NAME
vmsmaild - mail daemon for DECnet
SYNOPSIS
vmsmaild [options]
Options:
[-vVhfU] [-l logtype]
DESCRIPTION
vmsmaild is a daemon that forwards incoming VMSmail (or mail11) message to Unix users. It should be started at system boot time (after
DECnet has been started) and must be run as root. It is recommended that you run vmsmaild from dnetd(8)
The options below affect the behaviour of vmsmaild. If you are using dnetd then these options should be specified in the dnetd.conf(5)
file.
OPTIONS -l Set logging options. The following are available:
-lm Log to /dev/mono. (only useful if you have my mono monitor driver or mdacon and a second monitor)
-le Log to stderr. Use this for debugging or testing combined with -d.
-ls Log to syslog(3). This is the default if no options are given.
-v Verbose. The more of these there are the more verbose vmsmaild will be. Don't use more than one for normal operation because it
will seriously impair performance.
-h -? Displays help for using the command.
-V Show the version of vmsmaild.
-f Accepts mail send with the MAIL/FOREIGN command. Setting this option complicates the decoding of all mail message quite substan-
tially because the remote end thinks it is talking to a VMS machine that understands RMS file formats. Only use this option if you
really need it.
-U Don't check that the reply user exists when starting up. If you only want to use linux as a recipient of mail from VMS systems and
don't want to create a vmsmail user then set this option. See the Documentation/mail.README file for more information on setting up
a mail gateway.
SEE ALSO decnet.proxy(5), dnetd(8), dnetd.conf(5)DECnet utilities Decembet 26 2000 VMSMAILD(8)