10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have tried below email method and i am getting every thing in single line . i have put echo to provide space, but it is not helping
my code
(
echo "From: $FROM"
echo "To: $MAILTO"
echo "CC: $CC"
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo 'Content-Type: multipart/mixed;... (6 Replies)
Discussion started by: mirwasim
6 Replies
2. Shell Programming and Scripting
Hello,
I am trying to write a unix cmd , that if files in folder /path/FTP are all zero kb or empty then good to go, if not empty then sleep for 8 hrs.
Following cmd list me the files which are not empty, But when I am incorporating IF ELSE cmd fails
find /path/FTP. -type f -exec wc -l {}... (6 Replies)
Discussion started by: bluestarmoon
6 Replies
3. Shell Programming and Scripting
Hi i created a cron job which invoke a shell script and output some content via email.
Some times these output are sent to the junk email folder. i want these mails to be sent to inbox with some specific font. what i have to do? (4 Replies)
Discussion started by: vidhyaS
4 Replies
4. UNIX for Advanced & Expert Users
Is there a way I can send a text file directly to my Drafts folder? (1 Reply)
Discussion started by: idontknow
1 Replies
5. Shell Programming and Scripting
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies
6. Shell Programming and Scripting
Hello, I am VERY new to shell scripting here, so please go easy. I have an assignment that requires creating a script using bash shell, outputting all command line arguments that are not empty ones such as " ", and showing total number of arguments. I know how to show the total with $# and all... (6 Replies)
Discussion started by: moderwarfare
6 Replies
7. Web Development
Hi,
I am sharing this tip with you all.The codes given below will explain
/**
* Checking a folder is empty or not.
* @param string $folderName
* $folderName should be folder name or path
* @return TRUE/FALSE (If any file or folder found/Empty folder)
*/
function... (1 Reply)
Discussion started by: elizas
1 Replies
8. UNIX for Dummies Questions & Answers
Dear all,
Currently I writing a ksh script to perform some sql query. I already pipe results in a output file. But when I checked it, the output file is empty.
Below is part of the script that I wrote:
------------------------------------------------------------------------
function... (4 Replies)
Discussion started by: balzzz
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I would like to write a shell script that moves files from one folder to another without retrieving the error 'can not find file or folder' when the folder is empty.
Any ideas,
Thx in advance,
Steven. (8 Replies)
Discussion started by: Steven
8 Replies
10. Shell Programming and Scripting
Hi,
I would like to write a shell script that moves files from one folder to another without retrieving the error 'can not acces/find file or folder' when the source folder is empty.
Any ideas,
Thx in advance,
Steven. (2 Replies)
Discussion started by: Steven
2 Replies