Ok, here is what I have so far, but I am still pretty lost I think.
I'm still very much new to Bash and Unix.
Here is how I would like the output to look. ---------- Post updated at 02:49 PM ---------- Previous update was at 12:11 PM ----------
So I am very close now to what I want to achieve.
I could use a little help though yet with my date format.
What I would like to see is this for each listed task: Sun Apr 03 17:16:49 PDT 2011: Having some entries so I can demonstrate how this should look...
So I need to adjust something so that format doesnt show in there and would also like it to diplsay the day and times as shown in sample above.
Here is my entire current output upon script running at login,
Also just realized, I still haven't figured how to get it to say "Thanks" after I enter my task for todays session, and then drop me to command line.
As it is now, I answer and it then drops me to command line.
I know I need to echo "Thanks" in there, but not sure what or where to place it and if it needs something after.
---------- Post updated at 04:00 PM ---------- Previous update was at 02:49 PM ----------
Ok, I finally got it.
Thanks to anyone who even read this.
Hi, I'm pretty new to Unix and I just have a question concerning making a script executable without putting the "sh" command before it. In case it makes the difference I am on an Apple computer using the Terminal. Anyway here is the little test code I wrote followed by the commands I took to try to... (5 Replies)
Here is what I have:
#!/bin/bash
# Setup year date and month
YR=`date +%Y '{print $6}'`
MON=`date +%b '{print $2}'`
DAY=`date +%d '{print $3}'`
file=$YR$MOY$DOM
# clear
# Dump database using USER/PASS to ..sql
mysqldump --user=me -ppass database > database-db.$file.sql
The YR, MON and... (2 Replies)
hello experts
cany any one help me i want to make one script which can rlogin to another machine .
but it should not ask me username/password from me of another machine it should take the username and password from the script only.
please help me out.
regards,
shary (2 Replies)
Hi ,
I am new to shell scripting I want to make script as to execute followng command
mysqldump -u (user name) -p(password) database name>filename.sql
this file saves with current date and time
and execute automatically at particular time which I give (10 Replies)
I run a small instrument lab. We track our user's time on the instruments with a very manual process of 'last wtmp.1' then cut/paste data into spreadsheets. My boss makes the initial spreadsheets then I convert and format them for uploading into our billing software (COReS). Cores is looking for a... (8 Replies)
Hello, im a new user on this site and learning scripting very slowly at a understanding pace. However i am up with a challenge and require help completing this.
The script has to include arguments, variables, decisions and loops. So the script is about calculating the broadcast address for any... (5 Replies)
Hi all,
I'm new to Unix so just wanted some help.
I've been self learning and came accross a question online that I was trying. It is to make any shell script executable, the name of the file is to be made executable.
I would use nano and type in something like
#! /bin/bash
Chmod +x... (4 Replies)
Hello experts,
I'm trying to make a trace (unix log) in hope to see why I have differences in some bases :
I putted at the first { and in the last line } > $DATA_SAS 2>&1
Is it a right command ? Do you have another solution ?
thank you,
regards, (7 Replies)
This script is executed whenever a new vehicle is added to the cycle-motor park
of campus. The script asks for the following information about the car and adds a new
line to the vehicle file.txt: name (name of an animal, unique identifier), color, mark,
model, type (e.g., electrical, manual),... (2 Replies)