Sponsored Content
Full Discussion: Small Program with variables
Top Forums UNIX for Dummies Questions & Answers Small Program with variables Post 302317590 by gingburg on Tuesday 19th of May 2009 11:06:38 AM
Old 05-19-2009
Small Program with variables

Hello Geniuses of the unix world. please help, stupid chemist. I have the following script that I need to create a file. Doesnt make sense unless i explain this way: I need to create a file called summary.in I would like all these lines to be inserted however in the command line I would like the words in red to be variabls. So I can run a program from the command line, put in my variables and the summary.in file is created. Thank you all.

ArNa
B1LYP/6-311++G(3df,2pd) scan
Na
Ar
/u/ac/dkirkpa3/sumcalc/
ArNa_B1LYPcp
Na_B1LYP
Ar_B1LYP

progcros.in
progcros.out
gram_char.in
ArNa-B1LYP-CP-en-ko
0.5
/u/ac/dkirkpa3/summary/data2.txt
100 4.0 400.0
1.0 1.0 1.96
/u/ac/dkirkpa3/summary/summary.csv
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Dump program variables

Hi, Wish if could provide some clues. How do I dump all the C program variables(global) into say a file with their names and the values. So that when I restart the application again I could use this same file for reinitializing.Is this possible? Thanks, Reji (1 Reply)
Discussion started by: rejise
1 Replies

2. UNIX for Dummies Questions & Answers

Dummie: How do I get variables mid program

I'm writing a simple program in unix and was wondering how mid switch I can run a program and get someone to enter variables for it i.e.: #!/bin/csh -f echo "If you wish to do v press v" echo "If you wish to compile press c" echo "If you wish to add an entry press a" echo "If you wish to... (1 Reply)
Discussion started by: RichardB
1 Replies

3. Shell Programming and Scripting

How to access the C program variables in shell script

hi I wanted to access the C program variables in shell script. This script is called from the same C program. What are the ways in which i can access variables thankx (3 Replies)
Discussion started by: bhakti
3 Replies

4. Shell Programming and Scripting

help me do a small program!! THX

Write a shell script (to run on the Bourne shell) that runs an infinite loop to check every 5 seconds to report on who logs into and who logs out of a UNIX system. Without loss of practical significance of this little utility, we can ignore multiple logins from the same user during a time period of... (1 Reply)
Discussion started by: lydragon
1 Replies

5. Programming

execution small C++ program in UNIX

Hi my friends I am beginner unix programmer I have written small c++ program in text editor and I have change it mode to 555 to make it executable file to use it in unix O.P. #include<iostream.h> main() { cout<<"Hello World"; } but some syntax erroe came for << can any one help... (5 Replies)
Discussion started by: bintaleb
5 Replies

6. Shell Programming and Scripting

main program is not calling small other programs

I am trying to understand a program in a book and this program suppose to call other programs which are in the same folder, the other programs are called 'lu' and 'add' but for some reason when it gets to the last line of each case to call these programs there is an error message saying ./rolo:... (2 Replies)
Discussion started by: bartsimpsong
2 Replies

7. UNIX for Dummies Questions & Answers

I am not able to use variables in system command in a C program

this method is not working.I am having a problem to use variables in system command. i cannot use the variables in system command. this how i was did system("whereis command"); this method works very fine. but, i want use the commands as variable. that means i want only pass the variables.... (6 Replies)
Discussion started by: dhanda2601
6 Replies

8. Homework & Coursework Questions

Small Grading Program

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: 1. Create a series of commands for a grading program. Create a grades file. Put a "tab" between the name and... (7 Replies)
Discussion started by: Jagst3r21
7 Replies

9. Shell Programming and Scripting

Making a bash script and small C program for a homework assignment

Here's the assignment. I'll bold the parts that are rough for me. Unfortunately, that's quite a bit lol. The syntax is, of course, where my issues lie, for the most part. I don't have a lot of programming experience at all :/. I'd post what I've already done, but I'm so lost I really don't know... (1 Reply)
Discussion started by: twk101
1 Replies

10. Shell Programming and Scripting

Using env variables to run a program

Hi there, I need urgent help with a small program that is run via shell script. Unfortunately I only understand the bare basics of shell scripting and can't figure out how to do this. We have a program that tests the connection between 3 servers. I have a script that lets the program run on... (15 Replies)
Discussion started by: Pherdinand
15 Replies
TURNINCFG(1)						      General Commands Manual						      TURNINCFG(1)

NAME
turnincfg - manage assignments submitted with turnin SYNOPSYS
turnincfg [ OPTIONS ] [ project-name ] DESCRIPTION
Manages assignments submitted with the turnin(1) program. Allows the creation of courses and projects and the management of said courses and projects. This command used to be known as project in the early days of Turnin-NG and in the original turnin/project suite. Omitting [ project-name ] will cause turnincfg to use the default project. OPTIONS
--version Print project's version. -h, --help Print these options. -d, --disable Disable the current project. -D, --perm-disable Permanently disable submissions for the current project. -e, --enable Enable submissions for the current project and make it the default project. -l Enable submissions for the current project but does not make it the default project. -r, --remove Remove the current project and all associated files. -i, --init Initialize a project. Requires you to pass project-name -p, --compress Compress this project using the tar(1) and gzip(1) formats. -x, --extract Extract this project. This option will be called automatically if you enable a compressed project. -v, --verify Verify the cryptographic signatures on submitted assignments using gpg(1) May require you to fetch the student's public key. --list Print a list of projects, along with whether or not they are enabled and shows which project is the default project. --config=CONFIG Path to an alternate configuration file. -c COURSE, --course=COURSE Switch between the courses you are currently administering. -w, --legal Print warranty and license information. ADMINISTRATIVE OPTIONS --create-course=COURSE Creates the course COURSE. --delete-course=COURSE Deletes the course COURSE. --archive-course=COURSE Archives the course using the tar(1) and gzip(1) formats. EXAMPLES
turnincfg --create-course world-cheeses Create the course world-cheeses. turnincfg -c world-cheeses -i stilton Create the project stilton in the course world-cheeses. turnincfg -c world-cheeses -e stilton Enable and make default the project stilton turnincfg -c world-cheeses -D stilton Permanently disable submissions for the project stilton. turnincfg -c world-cheeses -p stilton Compress the project stilton. turnincfg --archive-course world-cheeses Compress the course world-cheeses and remove it from the global configuration file. FILES
/etc/turnin-ng.cf SEE ALSO
turnin(1) The full documentation for turnincfg is maintained as a Texinfo manual. If the info and turnincfg programs are properly installed at your site, the command info turnin-ng should give you access to the complete manual. AUTHOR
Turnin-NG and this manpage were written by Ryan Kavanagh <ryanakca@kubuntu.org> in the summer of 2009 and are still actively maintained. Turnin-NG is a replacement for the 'project' and 'turnin' commands written in 1990 for the SPARC architecture by an unknown author. Both Turnin-NG and this manpage are distributed under the terms of the GNU General Public License version 2, or (at your option) any later version. Turnin-NG SEPTEMBER 2010 TURNINCFG(1)
All times are GMT -4. The time now is 11:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy