Search Results

Search: Posts Made By: yabai
1,987
Posted By yabai
thanks again for your help and i've now got this...
thanks again for your help and i've now got this working.

i'm stuck on a new problem that i am trying to solve. my original plan was to download all the files and process them in a holding...
1,987
Posted By yabai
thanks for the advice Chubler_XL. I made a test...
thanks for the advice Chubler_XL. I made a test script and managed to get someething to work if there was only one file named .USM.


set F=("*.USM")
set BN=`basename $F .USM`
set...
1,987
Posted By yabai
processing an input file and then the output file
Hi.

I am new to scripting and could really do with some advice on the best way to put a script together. Here is the scenario I am working to;

- i will get files via ftp to a tmp directory on...
36,071
Posted By yabai
i made some changes and it appears to be working...
i made some changes and it appears to be working now so it may be of help to someone out there;
#!/bin/csh
set DATE=`date +%d%m%y`
set TIME=`date +%H%M`
set RECIPIENT="test@test.co.uk"

while...
36,071
Posted By yabai
hi again. i'm afraid it still doesn't work. I'm...
hi again. i'm afraid it still doesn't work. I'm thinking it is because it should be;

while (true)

whereas i am doing;

while (not true)
while ("$DPID" != "")

I've done further tests to...
36,071
Posted By yabai
Hi, thanks for the feedback. I did note the []...
Hi, thanks for the feedback. I did note the [] brackets in th grep. Here is what I have now.

When I run this it loops but keeps echoing ue_21 is up even when i stop the ue_21 process. I am...
36,071
Posted By yabai
hi danmero, i was using using the grep below...
hi danmero,

i was using using the grep below as it only returns something if it finds it. ps -ef | grep -v grep | grep e_1

The grep below returns the process if it is running as well as the...
36,071
Posted By yabai
hi, just to confirm that i started the u_1...
hi, just to confirm that i started the u_1 process before running these scripts and killed them in a different terminal so that i could monitor what they were doing. they only did echo "e_1 is up"
...
36,071
Posted By yabai
thanks for your help. i'm writing this in csh as...
thanks for your help. i'm writing this in csh as i have to use a source command to be able to start a process within a certain environment. all the other scripts on the server are also csh so i'm not...
36,071
Posted By yabai
hi jim. thanks for your reply. would a...
hi jim.

thanks for your reply. would a better model be?

a loop to check a process is ruuning, if it is then no action, if it isn't then start the process and at that point send an email to say...
36,071
Posted By yabai
infinite loop to check process is running
Hi,

I got a simple script working to check if a process is running and then email if it is not running anymore. My scenario is that I need to make sure the process is always running so instead of...
1,600
Posted By yabai
advice on managing files between two systems
I am looking for some guidance to see if this is the most efficient solution.

I have a piece of software that updates a directory every night at 2am. The directory contains xml files so at 2am...
22,559
Posted By yabai
hi, thanks for the tip. i did make the...
hi,

thanks for the tip. i did make the suggested change and ran the script again but got the following messages;

./cleanoldbackups.sh: line 15: [!: command not found
./cleanoldbackups.sh:...
22,559
Posted By yabai
shell script to remove old files and write to a log file
Hi,

I have a script that works on a unix box but am trying to get it working on a linux box that uses shell. I am not a programmer so this is proving harder than I imagined. I made some changes...
Showing results 1 to 14 of 14

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