11-16-2008
script related..
FILES=`find /abc/M/ -name '*.txt' | xargs ls -l | awk '{print $5 , $9}' > myoutfile.txt`
if [[ -n "${FILES}" ]]; then
echo "Hey, I found some files !" |\
mail -s 'Files !'
you@domain.org
else
echo "check the file"
fi
exit 0
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
well through my 6 months education i know some unix os but i can't find one for my p3 via board can any one tell me where to find such please replay as email or private msg and thanks (3 Replies)
Discussion started by: JaMaL
3 Replies
2. Shell Programming and Scripting
can someone pls help me with the script for a files coming from one system to a particular directory and i want to write a script to move those files to another directory on different system by renaming the files...
pls someone help me on this...
thanking in anticipation.... (1 Reply)
Discussion started by: thatiprashant
1 Replies
3. UNIX for Dummies Questions & Answers
hi
how can we change only the first ocurrence of a pattern using sed
thank u (14 Replies)
Discussion started by: sahana
14 Replies
4. Programming
I wanted to install similar automake & friends that exist in kdevelop in Eclipse also. There is a project related to this here and the plugins are at Download section. If everyone did it or might do it in the future, I am interested to know how !
If there is somebody else that has another option... (0 Replies)
Discussion started by: mihk
0 Replies
5. Solaris
can i mount the same mount point to two different file system...... (4 Replies)
Discussion started by: sudhansu
4 Replies
6. Shell Programming and Scripting
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies
7. Shell Programming and Scripting
Hi,
I need to know wat does if ! >$tmp_out in the below script mean:
tmp_out=$SCRATCH_DIR/file_cat.$$.tmp
if
! > $tmp_out
then
print "Could not initialize temorary file" >&2
my_exit_code=21
break
fi
---------- Post updated at 04:28 AM ----------... (4 Replies)
Discussion started by: abhishek.gupta
4 Replies
8. Shell Programming and Scripting
Hi All,
I am trying to dowmload the zip file "zkManageCustomers.zip " but i dont have access. Can anyone help me to download this file
See the below link-
http://www.ibm.com/developerworks/opensource/library/wa-aj-open/index.html?ca=drs-
Please help me as early as... (1 Reply)
Discussion started by: aish11
1 Replies
9. Shell Programming and Scripting
Hello Gurus,
Can anybody please help me to understand as what does this lines(Marked in bold) does:
_TABLESPACE_OFFLINE=`cat ${_tmp_res} | grep -iv "online" | grep -v "^*$" | grep -iv "SQL>"` ------->1
if ;then
_tmp_tablespace_status=1
... (1 Reply)
Discussion started by: hitesh1907
1 Replies
LEARN ABOUT XFREE86
asadmin-delete-domain
asadmin-delete-domain(1AS) User Commands asadmin-delete-domain(1AS)
NAME
asadmin-delete-domain, delete-domain - deletes the givendomain
SYNOPSIS
delete-domain [--terse=false] [--echo=false] [--domaindir install_dir/domains] domain_name
delete-domain deletes the specified domain. The domain must already exist and must be stopped. This command is supported in local mode
only.
OPTIONS
--domaindir directory where the domain is to be deleted. If specified, path must be accessible in the filesystem. If not speci-
fied, the domain in the default install_dir/domains directory is deleted.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
OPERANDS
domain_name name of the domain. Must be a unique name.
Example 1: Using delete-domain
asadmin> delete-domain sampleDomain
deleted domain sampleDomain successfully
Where: the sampleDomain domain is deleted.
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-create-domain(1AS), asadmin-start-domain(1AS), asadmin-stop-domain(1AS), asadmin-list-domains(1AS)
J2EE 1.4 SDK March 2004 asadmin-delete-domain(1AS)