07-02-2013
Update
So does that mean I have to input the d=`date '+%Y'` into emacs? Also once it's in emacs am I supposed to be putting parentheses around the commands to make them work?
Also here is a link to the assignment, this was left off of the original post.
www dot cs dot fsu dot edu slash ~langley slash COP3353 slash 2013-2 slash Assignment02 dot html
(Had to add "dot" "slash" since I'm too noob to post urls, sorry)
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have had a problem in Linux with the "Fortune" messages (unfortunately! :( ) and I need to trap the message again. It starts with a "IMPORTANT NOTICE".
To capture this, I write a script as follows..
#!/bin/sh
a=0
while ; do
/usr/games/fortune >> fortune.txt
a=`expr $a + 1`
done... (4 Replies)
Discussion started by: oldtrash
4 Replies
2. Shell Programming and Scripting
Hello,
I need to capture everything showed on a screen by a shell script which needs user interaction. The shell script performs commads such as rsh so normal redirection to a file does not work.
I know there is a special unix command call "script" which records screen session but the... (4 Replies)
Discussion started by: lalfonso.gomez
4 Replies
3. Shell Programming and Scripting
Hallo,
i need a Prompting read in my script:
read -p "Enter your command: " command
But i always get this Error:
-p: is not an identifier
When I run these in c-shell i get this error
/usr/bin/read: read: bad option(s)
How can I use a Prompt in the read command? (9 Replies)
Discussion started by: wiseguy
9 Replies
4. AIX
Hi,
This is odd, however here goes. There are several shell scripts that run in our production environment AIX 595 LPAR m/c, which has sufficient memory 14GB (physical memory) and horsepower 5CPUs. However from time to time we get the following errors in these shell scripts. The time when these... (11 Replies)
Discussion started by: jerardfjay
11 Replies
5. Virtualization and Cloud Computing
Hello,
I'm trying to create a VirtualBox "harddisk" and put an dd-image into it. This image shoudn't work as a virtual maschine, I just want to be able to mount it to an folder. How can I do this with an shell script?
Sebi
---------- Post updated at 10:36 AM ---------- Previous update... (0 Replies)
Discussion started by: Sebi0815
0 Replies
6. Shell Programming and Scripting
Hi All,
I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations:
1. I am restrained to 2 input files only.
2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Discussion started by: Katabatic
1 Replies
7. Shell Programming and Scripting
How do I create shortcuts? For example:
I just want to type one key "l" and have it output the command of "ls -lah"
I believe it's creating a file called l with 755 permissions but I'm not sure where to put the file.
*if it matters, I'm on a shared hosting web server using cPanel with... (2 Replies)
Discussion started by: ijustsawmars
2 Replies
8. Shell Programming and Scripting
Which one of the following are more accurate and why?
nohup myScript.sh 1>nohup_$(date +%Y%m%d%H%M%S).out 2>&1 &
nohup myScript.sh 1>>nohup_$(date +%Y%m%d%H%M%S).out 2>&1 &
nohup myScript.sh >nohup_$(date +%Y%m%d%H%M%S).out 2>&1 &
nohup myScript.sh >>nohup_$(date +%Y%m%d%H%M%S).out 2>&1 &... (3 Replies)
Discussion started by: kchinnam
3 Replies
9. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
getmail_fetch
getmail_fetch(1) User Commands getmail_fetch(1)
NAME
getmail_fetch - retrieve messages from one or more POP3 or POP3-over-SSL mailboxes and deliver to a maildir, mboxrd-format mbox file, or
external MDA
SYNOPSIS
getmail_fetch [OPTIONS] SERVER USERNAME PASSWORD DESTINATION
DESCRIPTION
getmail_fetch retrieves messages from POP3 or POP3-over-SSL mailboxes and delivers to a maildir, mboxrd, or external MDA. This command is
intended primarily for scripting, and as such does not require a client-side configuration file, and does not record any state.
The DESTINATION argument is interpreted as follows:
If it begins with a dot or a slash and ends with a slash, it is assumed to be a path to a maildir.
If it begins with a dot or a slash and does not end with a slash, it is assumed to be a path to an mboxrd file.
If it begins with a pipe, it is assumed to be a path to an external MDA command. Note that arguments can be included in this string by
separating them by whitespace; untrusted data must not be used in constructing this string.
OPTIONS
--version
show program's version number and exit
-h, --help
show a short usage summary and exit
-v, --verbose
output information messages while running
-q, --quiet
output only on error
-mFILE, --message=FILE
read well-formatted RFC822 message from FILE and deliver prior to connecting to POP server
-pPORT, --port=PORT
use port PORT instead of default (POP3: 110, POP3-over-SSL: 995)
-d, --delete
delete messages from server after delivery
-tTIMEOUT, --timeout=TIMEOUT
use timeout of TIMEOUT seconds instead of default 180
-a, --apop
use APOP authentication
-s, --ssl
use POP3-over-SSL
AUTHOR
Written by Charles Cazabon.
REPORTING BUGS
Report bugs to <charlesc-getmail-bugs@pyropus.ca>.
IMPORTANT: include the output of getmail [options] --dump with any bug report.
COPYRIGHT
Copyright (C) 1998-2009 Charles Cazabon
This is free software; see the file COPYING for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
SEE ALSO
The full documentation for getmail is maintained in HTML and plaintext formats. See the included files for details.
getmail 4 November 2005 getmail_fetch(1)