8 Topics

Member Avatar for
Member Avatar for riahc3

First, it has been a LONG time since Ive been here. Good memories from when I was young. Anyways In a monitoring system I have, I had a plugin that remotely checked a SMB share and if the file hasnt been modified in 1 day, it should return a warning. …

Member Avatar for Dani
0
65
Member Avatar for tunisia

trying to use sed command unsuccessfully c:\dct\ is what I want to have replaced with *raw sed -i 's/\c:\dct\/*/raw/g' adm2014.do i think the espace characters are throwing me off.

Member Avatar for rch1231
0
125
Member Avatar for zelrick

Hello DaniWeb / Linux Users and Programmers, I am 90% new to the world of Linux. I was instructed to edit a running program. The purpose of editing this program was to follow the format of the other running program. But it is hard for me to understand because some …

Member Avatar for zelrick
0
304
Member Avatar for winecoding

I am trying to understand one test script, which includes [CODE]if [ ! -f mahout-work/reuters21578.tar.gz ]; then echo "Downloading Reuters-21578" curl http://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz \ -o mahout-work/reuters21578.tar.gz fi[/CODE] What does the condition of [CODE]! -f mahout-work/reuters21578.tar.gz [/CODE]mean? And what does [CODE]curl http://kdd.ics.uci.edu/databases/reuters21578/reuters21578.tar.gz \ -o mahout-work/reuters21578.tar.gz [/CODE]stand for? Thanks.

Member Avatar for alaa sam
0
244
Member Avatar for airbourne

I am writing a simple shell script to automate a simple backup of a website and it's database. This is the working code: [CODE]#!/bin/bash # creates a backup of the mysql & webdata for a specific website. TODAY=`date +%A` # these variables cannot contain any spaces and must be modified …

Member Avatar for L7Sqr
0
700
Member Avatar for testman84

what I'm trying is to write program that accepts list of user as its argument 1- If a user or more are given as arguments, the script should reset files permissions as follows: a. Directory ~/share to 750 (if it exists). b. All regular files inside ~/share to 744. c. …

0
145
Member Avatar for daryll1

Hi, as a bit of background, My Uni have lately implemented a CGI script so you have to log in to be able to use the wireless. This would be OK but they are terrible programmers and instead of timing out after a period of inactivity it will time out …

0
129
Member Avatar for jen140

Hello all. With help on forum i've got the ideia of making the script to check if the file was created today and if its so,print its name. Here it is: [CODE] #!/bin/bash for file in *; do filedate= "date -r $file +%Y-%m-%d" currentdate= "date +%Y-%m-%d" if["$filedate" == "$currentdate"]; then …

Member Avatar for rhousand
0
135

The End.