Search Results

Search: Posts Made By: bbowers
2,093
Posted By bbowers
I actually forgot the sh..
in my post. I do have the .sh
Sorry, my mistake
2,093
Posted By bbowers
Help with Crontab and Scripts
I'm trying to create a crontab that runs every hour and runs a script in my $HOME/bin directory.
Everytime it goes to run it I get this mail.


Message 14:
From root@xx.xxxx.edu Thu Apr 12...
1,858
Posted By bbowers
Case Statement for Login/Logoff Script
I'm currently trying to write a login script. I have already written a logoff script that uses an if/else statement.

#!/bin/bash
TIMED=$(date +%H)
if [ "${TIMED}" -lt "16" ]' then
echo Have a...
1,924
Posted By bbowers
so what I've done..
Ok I have changed it. It now says

#!/bin/bash
TIMED=$(date +%H)

if [ "${TIMED}" < "16" }; then
echo Have a great day $USER
else
echo Have a great night $USER
fi

That seems to work well...
1,924
Posted By bbowers
If Else Statement, Goodnight/bye
I'm working on a script that will send me an email everytime I log out. I've got that down, and now I'm trying to put in an if else statement. Right now, it says "Goodbye $USER" but I'd really like...
2,271
Posted By bbowers
Make directory in script
I'm creating a file that reads:
cd $HOME
echo What would you like to call the tar file?
read TARNAME
tar -cf $TARNAME.tar labs/*
mkdir backups
mv $TARNAME.tar backups/

Now my problem I'm...
6,405
Posted By bbowers
Remove Line Break VI
I'm trying to make a script that says

echo This is the date: [then is reads the date]

I did this
echo This is the date:
date

and it worked. But I need them both on the same line. And...
4,822
Posted By bbowers
That is exactly what I was looking for. Thank you!
That is exactly what I was looking for. Thank you!
4,822
Posted By bbowers
Will that help me with line breaks?
Will that help me with line breaks?
4,822
Posted By bbowers
VI Line Break?
So I'm in a Unix class and our assignment was to go into VI and write a script to make this file tree. At the end of it, I'd like it to echo "This is the file tree you've created" then a line break,...
Showing results 1 to 10 of 10

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