Search Results

Search: Posts Made By: $shell_Learner
5,535
Posted By $shell_Learner
That's fixed it, thankyou!
That's fixed it, thankyou!
5,535
Posted By $shell_Learner
Can't get my crontab to run
I'm trying to get a crontab to run, every Friday at 11am and the problem is that it isn't running at all.


0 11 * * 6 /Users/martinb/Documents/SYSADMIN/Regular-Scripts/Info-And-Backups.sh

...
10,820
Posted By $shell_Learner
How to run multiple cron jobs?
I have two scripts which I'm tying to run one after the other- this is what I've tried:


00 14 * * * /path/one.sh && /path/two.sh


I've also tried putting each script on a different line:

...
864
Posted By $shell_Learner
That's worked, thankyou so much!
That's worked, thankyou so much!
864
Posted By $shell_Learner
Separating output after final character
I'm trying to write a script that will email the contents of my Application folder to me.


cd /Applications
ListApps=$(ls)
echo $ListApps | mail -s "Application Check" myself@myemail.com

...
1,330
Posted By $shell_Learner
Pipe INTO... /Applications/Carbon\ Copy\...
Pipe INTO...
/Applications/Carbon\ Copy\ Cloner.app/Contents/MacOS/ccc -h | tail -1 | grep -Eo '([0-9]{2}/){2}[0-9]{4}' Thankyou so much!
1,330
Posted By $shell_Learner
I'm not sure what you mean by piping it, but I've...
I'm not sure what you mean by piping it, but I've tried:
grep -Eo '([0-9]{2}/){2}[0-9]{4}' | /Applications/Carbon\ Copy\ Cloner.app/Contents/MacOS/ccc -h | tail -1
1,330
Posted By $shell_Learner
Get date from a line of output
Is there a way to retrieve the date (02/09/2016), wherever it's located in the line?
I'm writing a script that checks Carbon Copy Cloner backups.

This was my first step which returns details of...
Forum: What is on Your Mind? 08-30-2016
1,165
Posted By $shell_Learner
Thank you :)
Thank you :)
Forum: What is on Your Mind? 08-30-2016
1,165
Posted By $shell_Learner
How do you earn bits?
Just wondering how these are accumulated, I recently made a search and noticed that mine had gone up- I'm guessing that it's based on user activity i.e. writing posts but is there a list of actions...
1,695
Posted By $shell_Learner
df -h | head -2 | awk 'NR==2{print $8;exit}'That...
df -h | head -2 | awk 'NR==2{print $8;exit}'That works well too, thank you.
1,695
Posted By $shell_Learner
Hi RudiC, I've just figured it out, I've...
Hi RudiC,

I've just figured it out, I've combined the command with tail -1 to the cut the top line.

df -h | head -2 | awk '{print $8}' | tail -1

Thank you for your reply though. :)
1,695
Posted By $shell_Learner
Cutting disk space output
Running this code
df -h | head -2 | awk '{print $8}'

Gives me the following output:

%iused
6%


What I'm trying to do is get the 6% but I'm having trouble doing this using cut -c, I think...
Showing results 1 to 13 of 13

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