Search Results

Search: Posts Made By: daydreamer
54,743
Posted By daydreamer
thanks alot thats exactly what i needed, probably...
thanks alot thats exactly what i needed, probably would have taken me ages to work out how to use grep!

works perfectly.
2,473
Posted By daydreamer
hey thanks alot for the code. problem is i...
hey thanks alot for the code.

problem is i didnt make the daemon so i cannot put return codes at exit points.

I think it may be more ideal to check if the process is running or not, then if it...
54,743
Posted By daydreamer
script to check if process is running
How do I make a shell script to see if a certain process is running.

The process shows up on ps aux as /usr/sbin/daemon

eg:

if [! /usr/sbin/daemon ]
/usr/sbin/daemon
else
#nothin
...
2,473
Posted By daydreamer
Finding out how long a script runs for and exit reason.
I am running a daemon program that sends texts via a connected mobile phone. I run this daemon via CLI, and it loops a few commands (checking to see if there are any new texts).

It runs perfectly,...
1,582
Posted By daydreamer
Some questions about file permissions.
Hi, what happens in these scenarios?

1. You give no permissions to "others" on a directory, but in that directory the files have read permissions for "others", can they read the file?

2. Are...
2,537
Posted By daydreamer
ok thanks mate, going to try PSAD soon.., i do...
ok thanks mate, going to try PSAD soon.., i do use port 22 for remote logins, but i will disable it and then open it when i need to use it.

Just installed firestarter, the firewall GUI for...
2,537
Posted By daydreamer
Server security
I am using Ubuntu Desktop as a server, which will be left on.

It is behind a router, I have MAC address filtering and port forwarding enabled, the router also has an SPI firewall built in.

How...
1,630
Posted By daydreamer
thanks all working now.
thanks all working now.
1,630
Posted By daydreamer
o ok thanks for the help.. ive got the cron task...
o ok thanks for the help.. ive got the cron task running now, but just need to sort out my script.

i thought */1 would run every other minute!
1,630
Posted By daydreamer
why isnt cron working?
I am using Ubuntu linux desktop, and I am trying to schedule a sheel script to run every 10minutes.

These are the steps I have taken:

crontab -e

added and saved this line to the file
# m h ...
6,313
Posted By daydreamer
yeh, its working now, thanks anyway! ...
yeh, its working now, thanks anyway!

download=$(php /var/www/last.php)

if test $download -eq 1
12,003
Posted By daydreamer
wwwwww
wwwwww
12,003
Posted By daydreamer
solved download=$(php /var/www/last.php) ...
solved

download=$(php /var/www/last.php)

if test $download -eq 1
6,313
Posted By daydreamer
piping output from PHP file into variable
Hi.

I have a script like so:
#!/bin/bash

download='php /var/www/last.php'
echo $download
if $downloadHow do I pipe the output of the php file into a variable, as when i run the if statement,...
12,003
Posted By daydreamer
OK thanks, decided to do it in PHP because I am...
OK thanks, decided to do it in PHP because I am better at using the date and time functions.

Here is my script
#!/bin/bash

download='php /var/www/last.php'
echo $download
if $download
...
12,003
Posted By daydreamer
PHP function in a shell script
Hi.

I am writing a shell script for Ubuntu linux.

Eventually I want my script to run every 10 mins via cron.

This is what I am trying to do:

php file:
connect to mysql database
get the...
Showing results 1 to 16 of 16

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