Sponsored Content
Full Discussion: Making flags for my script
Top Forums Shell Programming and Scripting Making flags for my script Post 302078177 by rcunn87 on Wednesday 28th of June 2006 12:59:24 PM
Old 06-28-2006
Making flags for my script

I have no idea how to make my own flags.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help making a script

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)
Discussion started by: npereira
2 Replies

2. Shell Programming and Scripting

making script

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)
Discussion started by: shary
2 Replies

3. Shell Programming and Scripting

making a archive script

Hi All: I'm not much of a script writer so I could use your input. Here's the objective... Need a script that will archive (tar) files based on date and then move them into an archive directory. The file names are as follows... S20070101.001 Year month day S20070102.001 As you can see... (1 Reply)
Discussion started by: jimmyc
1 Replies

4. UNIX for Dummies Questions & Answers

need help making a script executable

making a script in vi to create a shell script called wherearethey by entering the following script: echo -n "Who are you looking for: "read userif then list=`w | grep $user | cut -c19-30` if then echo "The user $user is logged in from $list" else echo "The user $user is not logged in... (3 Replies)
Discussion started by: curtner
3 Replies

5. Shell Programming and Scripting

flags passed to an awk script

I have an awk script script.awk for example and want to pass a flag (let's call it "neat") so that the data is put into nice columns. For example like this awk -v neat -f script.awk fin > fout Then check inside the program if the use has put neat, if yes I output the lines in nice columns,... (1 Reply)
Discussion started by: kristinu
1 Replies

6. Shell Programming and Scripting

Help making a tasklog script

I am trying to create a program called tasklog that integrates with one of my online accounts, to keep track of what tasks I have been working on. On login, I'd like it to display (up to) the five most recent entries, then ask me what I plan to work on during the new session. I then will type an... (3 Replies)
Discussion started by: santod
3 Replies

7. Shell Programming and Scripting

Need script to remove GCOV flags from Qt project file

Hi, I have the following gcov compilation flags in all the QT source code project (*.pro) files. CONFIG(gcov) { LIBS += -lgcov QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage } Now, I want to remove these flags off my files. Please help me with a script to... (1 Reply)
Discussion started by: royalibrahim
1 Replies

8. Shell Programming and Scripting

I could use some help with making a script

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)
Discussion started by: jpontius
8 Replies

9. Shell Programming and Scripting

Need Help With making this script

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)
Discussion started by: tHe666
5 Replies

10. UNIX for Beginners Questions & Answers

Help me making this script

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)
Discussion started by: andre2222
2 Replies
make.coverpg(1) 					       mgetty+sendfax manual						   make.coverpg(1)

NAME
make.coverpg - create a fax coverpg on stdout SYNOPSIS
make.coverpg [options] <pages> <sender-ID> <sender-NAME> <receiver-ID> <receiver-NAME> <date> <time> DESCRIPTION
make.coverpg is called from faxspool(1) to generate a cover page for the just-processed fax. It has to create a proper G3 file (e.g. via pbm2g3(1) or hp2hig3(1) or ghostscript(1)) and output that on stdout. If the program doesn't exist, or can't be executed, the fax simply won't get a coverpage (so, if you don't want a fax coverpage, do not install it...) make.coverpg can put anything it wants on the page, but note that there are certain legal requirements in certain countries about the con- tents that *have* to be on the cover page, for example, the fax phone number of the sender and the recepient, the number of pages, or simi- lar things. make.coverpg gets the informations about the fax to be sent from the command line, in the order listed above. If the environment variable normal_res is set to something non-empty, faxspool requests that make.coverpg creates a cover page in normal resolution (98 lpi). Default is fine resolution (196 lpi). NO make.coverpg program is installed by default, since everyones needs differ too wildly. Some sample coverpage programs are provided in the mgetty source tree, in the samples/ subdirectory (coverpg.pbm shows how to do it with "pbmtext|pbm2g3", coverpg.ps shows how I do it with ghostscript). In this directory, you can also find two shell scripts (fax and faxmemo) that will take advantage of one more esoteric feature of my cover- page programs: if called with the option "-m <memo-file>", the sample programs will put a text file "<memo-file>" on the cover page (used for short notes or such). To make use of it, faxspool is called with the option '-C "make.coverpg -m <memo-file>"' (the double quotes are needed!). OPTIONS
none Example A five-page fax sent from me to my second number could result in a call like this: make.coverpg 5 "+49-89-3243328" "Gert Doering" "3244814" "myself" "Sep 15 94" "22:10:00" FILES
/usr/lib/mgetty-fax/make.coverpg the program itself SEE ALSO
faxspool(1), pbm2g3(1), ghostscript(1) AUTHORS
The idea behind make.coverpg is Copyright (C) 1993 by Gert Doering, <gert@greenie.muc.de>, the implementation will most likely have yours... greenie 27 Oct 93 make.coverpg(1)
All times are GMT -4. The time now is 05:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy