Hello,
I am trying to understand how to pause messages being sent from one system via udp to another system point-to- point on a specific ip address, and resume it when needed.
I was hopeing there was a system commnad I could use in a simple script.
If anyone has any suggestions or wisdom...
Hello,
I am trying to understand how to pause messages being sent from one system via udp to another system point-to- point on a specific ip address, and resume it when needed.
I was hopeing there was a system commnad I could use in a simple script.
If anyone has any suggestions or wisdom...
Sorry I didn't place "then" after the if statements.
printf "What directory would you like to clean: \n"
set DIR = $<
cd $DIR
mkdir files
while(1)
if(Lp_CNT == 1) then
exit;
endif
foreach file (*.zip)
mv $file TEMP
end...
Here is a sample of what you could do. If you test make sure it is tested in a safe enviornment.
hombase
-----------------------------------------------------------
#!/bin/csh
set Lp_CNT = 0;
printf "What directory would you like to clean: \n"
set DIR = $<
cd $DIR
mkdir files...
ALCON,
What I did is applied Kencunningham's logic and created a dummy log.
I guess I am at the point of saying that this is a problem within csh scripting. I will probally rewrite this in ksh.
Ed
That is what the if statment does, it test with a condition ie.. if(-f $log && -d TEMP)then, and if the condition is true the following arguments will be executed.
What it shouldn't do is bum out if part of the condition is false, it should test the 2nd condition and so on until it meets...
I not sure if you or getting this form a word processor or what and bringing it up in unix. If thats the case try this:
at the prompt type, dos2unix yourfilename > newfilename
this remove any carriage returns or such.
Peace!
hombase
Hi all,
Can anyone assit me?
I wrote this script to clean up log files located in a directory called out. The script creates a directory called TEMP and moves the logs into the directory then tars the directory and compresses it. After all that is done it will remove the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.