Search Results

Search: Posts Made By: benefactr
26,608
Posted By benefactr
Thanks all for your help. Bipinajith your...
Thanks all for your help. Bipinajith your solution worked but I needed something in awk. Searching further I found a awk example and was able to cobble this together and it seems to work. I...
26,608
Posted By benefactr
Get time different between two dates using awk.
Hello,
I have looked at perados date topics and couldn't find one that would suit my needs. I have the output below from Microsoft sql server. It shows where there was a status change. The date...
1,986
Posted By benefactr
I think you just need to add the path of the...
I think you just need to add the path of the script to your /etc/profile to the PATH line.
12,485
Posted By benefactr
All you mention should be done from the...
All you mention should be done from the applications running. Cron isn't going to save off process errors unless you are directing the cron job off to a log file. I am guessing logging isn't...
5,399
Posted By benefactr
I thin awk will do the job alot faster. You can...
I thin awk will do the job alot faster. You can use the substr function in awk to parse out your data.
8,755
Posted By benefactr
Use your orginal ftp statement, mine was just a...
Use your orginal ftp statement, mine was just a example, but just add the redirect before the <<EOF in your just like I did in mine.
8,755
Posted By benefactr
I'm unsure what you are doing in your wc...
I'm unsure what you are doing in your wc statement with the ftp command, but I always redirect the ftp to a log and then grep from that log.



ftp -pnv > /tmp/ftp.log <<-EOF
...
EOF...
5,574
Posted By benefactr
linux ISQL and MSSQL unload results to file
Hello,
I am using suse 10.1 and isql from unixodbc to connect to a MS SQL server. I got everything to work fine. What do I need to unload the results from the sql to a file? I attempted to put...
3,330
Posted By benefactr
Here's a little function I created. May not work...
Here's a little function I created. May not work on all linux systems. Thanks.

function days_ago {
DAYAGO=$1
set -- $(date -d "$DAYAGO days ago" "+%Y %m %d")
YYYY=$1 ; MM=$2 ; DD=$3
...
Forum: UNIX and Linux Applications 03-26-2009
38,270
Posted By benefactr
Oracle Select IN statement
If I recall, when I used informix I could do a sql statement like:
SELECT Value from Table WHERE ID in (100,200,300);
How do I do this in Oracle? I believe I am using Oracle 10 if that matters....
4,171
Posted By benefactr
That was the issue, thanks alot!
That was the issue, thanks alot!
4,171
Posted By benefactr
perl replace command, stumped!
Ok,
I stole some code from a program that takess a hash of a password from PasswdMD5 and replaces it in the /etc/shadown file on a linux system. I run his program and it's fine. Well I took the...
Forum: SuSE 01-16-2009
9,237
Posted By benefactr
Ok New Question, where can I put the program to...
Ok New Question, where can I put the program to run after everything has started up. I have it running in runlevel 3 using the highest number but seems like the program isn't able get a network...
Forum: SuSE 01-15-2009
9,237
Posted By benefactr
I changed S99 to S10 and now it seems to be...
I changed S99 to S10 and now it seems to be running at startup. Anyone know why that is? Thanks.
Forum: SuSE 01-15-2009
9,237
Posted By benefactr
Yes that's the right path, as there is no rc3.d...
Yes that's the right path, as there is no rc3.d and all other runlevel programs are in the paths.
Forum: SuSE 01-15-2009
9,237
Posted By benefactr
gold:/etc/init.d # ls -lrt /etc/init.d/foostart ...
gold:/etc/init.d # ls -lrt /etc/init.d/foostart
-rwxrwxrwx 1 root root 143 2009-01-15 12:43 /etc/init.d/foostart
gold:/etc/init.d #

gold:/etc/init.d # ls -lrt /etc/init.d/rc3.d/S99*
lrwxrwxrwx...
Forum: SuSE 01-15-2009
9,237
Posted By benefactr
New runlevel service
Ok, I am attempting to add a new program to startup during the runlevel 3. I am using Suse 10.
I made a script lets call it foostart and placed it in /etc/init.d. It has 777 permissions on the...
Forum: SCO 12-17-2008
6,877
Posted By benefactr
I tried to put /etc/shutdown -r now in a shell...
I tried to put /etc/shutdown -r now in a shell script and have cron run that, but the system didn't boot. Should I just call /etc/reboot from cron directly like
30 3 * * 3 /etc/reboot

Thanks.
5,502
Posted By benefactr
If you get the numbers by themselves in a file,...
If you get the numbers by themselves in a file, you can do the below to set them to variables.
COUNT=0
for num in `cat tmpfile2`
do
COUNT=`expr $COUNT + 1`
eval r${COUNT}=$num
done

echo...
5,502
Posted By benefactr
Try this on when catting your tmpfile. This...
Try this on when catting your tmpfile. This would only work if there is spaces before the numbers in your tmpfile, as it looks like there are.

cat tempIP | tr -s " " | cut -d " " -f2
Forum: SCO 12-12-2008
6,877
Posted By benefactr
It's the old story where support and site...
It's the old story where support and site thinking if they reboot the box on a regular basis it will go faster. Well no it's a old sco box and this won't do anything, but I will do this for them to...
Forum: SCO 12-12-2008
6,877
Posted By benefactr
SCO 5.0 setup auto reboot
Hello,
How do a schedule a reboot of a SCO 5.0 box like every wednesday at 3:30 am. Doesn't have a /etc/crontab file like our Suse boxes have. Thanks for any help.
13,719
Posted By benefactr
SCP Timeout?
Hello,
I was wondering is there a way for SCP to shorten the timeout to fail when it attempts to connect a host that is down. Seems like it takes about a minute or so for scp to timeout. This is...
2,415
Posted By benefactr
boot up detection for linux
Hello,
I was wondering is there a specific process I could look for to tell if my suse linux machine is still booting up. I have a monitor process and it's detecting problems with processes...
6,331
Posted By benefactr
This may not be 100% correct but I think pretty...
This may not be 100% correct but I think pretty close and simple, but daemons are programs that continue to run on your system at all time.... like crond is a daemon for crontab... do a ps -ef |...
Showing results 1 to 25 of 75

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