Search Results

Search: Posts Made By: zulfikarmd
3,042
Posted By zulfikarmd
Thanks mate. We have smbclient set up and I am...
Thanks mate. We have smbclient set up and I am able to move/copy files onto unix machine periodically. But what i want to do is to run this command once when file is available on the shared drive and...
3,042
Posted By zulfikarmd
file monitoring using unix scripting on shared drive
Hi all,

I have a query and need advise. is it possible to have a script which will monitor file/s on network shared drive (windows machine)? Is there a way i can monitor a file is available on...
2,908
Posted By zulfikarmd
pludi/tetreb, Below is my file contents: ...
pludi/tetreb,

Below is my file contents:

#!/bin/ksh
values=`cat testvalue`
DATABASES=`echo -n "select agroup,tgroup from acc_gen..agroups where tgroup in ( $values ) go " | isql -Uro...
2,908
Posted By zulfikarmd
echo "$DATABASE" | tr '\n' ' ' doesn't display...
echo "$DATABASE" | tr '\n' ' ' doesn't display anything at all.
2,908
Posted By zulfikarmd
Doesn't work. Actually I want to get values like...
Doesn't work. Actually I want to get values like "acc_fund2 KLU_LP acc_fund3 KLU_LTD". When I use echo $DATABASES it prints like acc_fund2 KLU_LP acc_fund3 KLU_LTD and when I use echo "$DATABASES" i...
2,908
Posted By zulfikarmd
Vidhyadhar, it doesn't work. Actually I want to...
Vidhyadhar, it doesn't work. Actually I want to get values like "acc_fund2 KLU_LP acc_fund3 KLU_LTD". When I use echo $DATABASES it prints like acc_fund2 KLU_LP acc_fund3 KLU_LTD and when I use echo...
2,908
Posted By zulfikarmd
Help with script
#!/bin/ksh

values=`cat testvalue`
DATABASES=`echo "select agroup,tgroup from acc_gen..agroups where tgroup in ( $values )
go
" | isql -Uro -Pcup0fj0e -Sdev1client420 | grep acc_`

echo ...
4,791
Posted By zulfikarmd
Thanks Namish I got script running on production....
Thanks Namish I got script running on production. Appreciate your help.:b:
4,791
Posted By zulfikarmd
Thanks all for the hints/guidance/help on this. I...
Thanks all for the hints/guidance/help on this. I have it working:

command: /bin/bash -c 'HR=`date +%H`; H7=7; H16=16; if [ "$HR" -ge "$H7" ] && [ "$HR" -lt "$H16" ]; then sendevent -E SET_GLOBAL...
4,791
Posted By zulfikarmd
Thanks. Now new error: :rolleyes: ...
Thanks. Now new error: :rolleyes:

#!/bin/bash
HR=`date +%H`;
if ["$HR" -gt 6] && ["$HR" -lt 16]; then
sendevent -E SET_GLOBAL -G GOMAN_HR=`0730`
exit 0
else if ["$HR" -gt 15]; then
...
4,791
Posted By zulfikarmd
That didn't work. Then I tried following: ...
That didn't work. Then I tried following:

:/export/home/zdholkawala $ sh -v GOMAN_HR.sh
#!/bin/bash
HR=`date +%H`;
if [$HR -gt 7];
if [$HR -lt 16]; then
sendevent -E SET_GLOBAL -G...
4,791
Posted By zulfikarmd
Thanks. To start with I wrote this and executed...
Thanks. To start with I wrote this and executed (Not sure though its correct or not):

#!/bin/bash
$HR=date +%H;
if [$HR -gt 7];
if [$HR -lt 16]; then
sendevent -E SET_GLOBAL -G...
4,791
Posted By zulfikarmd
Unix Script for getting date and validating just Hour
Hi,

Can someone guide me to write a unix script for getting a hour out of a date command and validating hour to see if its > 7 and < 16. if hours is >7 and <16 then assign a variable value of 0730...
45,734
Posted By zulfikarmd
Thanks Era. But this script would just check scp...
Thanks Era. But this script would just check scp is successful or not. But What I want is to see if remote host is able to accept connection before doing scp.

Thanks.
Zulfiqar
45,734
Posted By zulfikarmd
Thanks Era. By "Up and Running" I mean i should...
Thanks Era. By "Up and Running" I mean i should be able to scp necessary file from that machine to other machine. Hope this helps.

Thanks again for your help.

Regards.
Zulfiqar
45,734
Posted By zulfikarmd
Bash Script to check Remote Host Connection
Hi all,

Can anyone tell/guide me how to check remote host is up/running using bash script?

Thanks.
Zulfiqar
Showing results 1 to 16 of 16

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