Search Results

Search: Posts Made By: tjhorwood
11,676
Posted By tjhorwood
...thankyou, but still its proving tricky this!! ...
...thankyou, but still its proving tricky this!!

Amended script:
#!/bin/sh

alertperson=$(cat /export/home/bdodym/alert.person)
echo $alertperson
if [ -f /export/home/bdodym/critabend.tag ]
...
11,676
Posted By tjhorwood
I wish it were that easy Ikon! Amended...
I wish it were that easy Ikon!

Amended script:
#!/bin/sh

alertperson = cat /export/home/bdodym/alert.person
echo $alertperson
if [ -f /export/home/bdodym/critabend.tag ]
then
...
11,676
Posted By tjhorwood
Text file to a variable
I have a variable which is not being populated with the contents of a text file, and I'm wondering if anyone happens to know how to do this for a sh type script?

#!/bin/sh
set alertperson = cat...
17,372
Posted By tjhorwood
Ok, thanks.....to which file?
Ok, thanks.....to which file?
17,372
Posted By tjhorwood
Hi sumitbabar I already have the .sh...
Hi sumitbabar

I already have the .sh extensions, my problem is my emails aren't sending when run from cron. All is fine from the command line.
Thanks, Tim
17,372
Posted By tjhorwood
zaxxon - thankyou for your reply. I was just...
zaxxon - thankyou for your reply. I was just reading up about "source". So if I were to source it, would I just add the source to 6check.sh (the emailing bit) or 6start.sh too (which, as mentioned...
17,372
Posted By tjhorwood
Running a shell script in cron...email not sending - help??
I am pretty new to Unix shell scripting, but wondered if anyone could help (in layman's terms if possible!!) :)

I have a shell script which ultimately sends an alert to an email address if part...
2,521
Posted By tjhorwood
Fence status - beginners problems!!
Hi,

I'd like to try and capture a fence status from Maestro and move it to another file, but each time I try it fails.

For example, when using Maestro (conman) I enter:

status

I then...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 03:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy