Sponsored Content
Top Forums UNIX for Dummies Questions & Answers one script loading(exe) enother script Post 1798 by Cozmic on Friday 30th of March 2001 07:47:57 AM
Old 03-30-2001
To execute another script from a script.
Test if the script exist and then call the script.

for example:

if [ -r ~/.myscript]; then &nbsp&nbsp&nbsp&nbsp&nbsp// see "man [" -r means "True if file exists and is readable"
&nbsp&nbsp&nbsp&nbsp. ~/.myscript &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// call .myscript
fi
Cozmic
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script for Data loading in Oracle

Hi All I am new to unix. I need a shell script to load a datafile in to oracle. I already have a control file, and data file. all I need is if i execute the shell it must load the data using the ctl file to table. Control file : PAY0001.ctl Datafile : mon_grs_det.dat log file :... (3 Replies)
Discussion started by: raghuraja_r
3 Replies

2. Shell Programming and Scripting

unix script for loading a data from a file into database

Hi All, I am trying to load a data from a files in a particular directory to a database.. cd $SCC isql metdb >> ${LOGDATA}/LOAD.LOG < ! load from "${LDATA}/${FORM}.ld" insert into $LOADTABLE ! But it's showing the error "syntax error at line 46 : `<<' unmatched" Can u plz help me... (5 Replies)
Discussion started by: grajesh_955
5 Replies

3. Shell Programming and Scripting

Exe for perl script

Hi, how to create an exe out of a perl script.Even if it is possible how secure is it? Are there other softwares to decryprt a perl exe and get the source code out of it ? (7 Replies)
Discussion started by: Anuj8584
7 Replies

4. UNIX for Advanced & Expert Users

creating data loading script

asdfasdfasdfasdf??? (2 Replies)
Discussion started by: noorm
2 Replies

5. Shell Programming and Scripting

can I run a exe which is at bin dir from my script.

Hello forum memebers. I have command which is exe of C- program from my script.i am writing a script which is under path /abc/xyz/test.sh. the script consist the command which is the exe of c-prog and the exe is present in the /abc/xyz/bin.if run the command from the /abc/xyz its running and if... (3 Replies)
Discussion started by: rajkumar_g
3 Replies

6. Shell Programming and Scripting

send arguments to a .exe file from a shell script

Folks , can anyone post a sample showing a way to parse a variable containing a string to a .exe file . Thanks Venu (2 Replies)
Discussion started by: venu
2 Replies

7. Shell Programming and Scripting

Loading a tar file into the shell script

Hi All, I am trying to write a shell script in which the contents of a small tar file is loaded into a variable and the same variable contents is moved into another file and finally untaring of the newly created file is done. The Shell Script is as follows: #----Start Of The... (11 Replies)
Discussion started by: wini008
11 Replies

8. Shell Programming and Scripting

Unix script for removing the footer from the datafile while loading into externaltable using sqlload

Hi, Can you please tell me the Unix shell script for removing footer from the datafile while loading into external table using sqlloader we will be skipping the header like this while creating the table organization external ( type oracle_loader default directory directoryname... (5 Replies)
Discussion started by: srikanth_sagi
5 Replies

9. Shell Programming and Scripting

Run .exe inside shell script

I have to run some shell scripts in Windows using Cygwin. I am able to achieve that using %BASH% --login -i "/cygdrive/d/script.sh" , where %BASH% is an environment variable in Windows set to C:\cygwin\bin\bash.exe. I have a created a Cygwin environment variable $EXE_PATH =... (3 Replies)
Discussion started by: HemanthJayasimh
3 Replies

10. Shell Programming and Scripting

How to avoid locks while loading database through UNIX script.?

Hi, I have the following requirement: I have load_cdr as main scriptwhich loads all the file records into vertica database through unix script. But there are two files which try to update same table..n thats y my script is getting failed... Can any1 give me some logic how to over come this... (6 Replies)
Discussion started by: gnnsprapa
6 Replies
bibtexconv(1)						    BSD General Commands Manual 					     bibtexconv(1)

NAME
bibtexconv -- BibTeX Converter SYNOPSIS
bibtexconv BibTeX_File [-export-to-bibtex=file] [-export-to-separate-bibtexs=prefix] [-export-to-xml=file] [-export-to-separate-xmls=prefix] [-nbsp=string] [-non-interactive] [-check-urls] [-only-check-new-urls] [-store-downloads=directory] [-add-url-command] [-skip-notes-with-isbn-and-issn] [-add-notes-with-isbn-and-issn] DESCRIPTION
bibtexconv is a BibTeX file converter which allows one to export BibTeX entries to other formats, including customly defined text output. Furthermore, it provides the possibility to check URLs (including MD5, size and MIME type computations) and to verify ISBN and ISSN numbers. bibtexconv provides an interactive mode (usually used in form of export scripts) which allows for fine-granular selection of entries, sorting and export template specification. OPTIONS
The following arguments may be provided: BibTeX_File The BibTeX input file. -export-to-bibtex=file Write the results as BibTeX into the given file. -export-to-separate-bibtexs=prefix Write the results as BibTeX; for each entry, an own file will be created. The filename will be generated from given prefix (e.g. "/tmp/MyBibTex-"), the entry key and ".bib". -export-to-xml=file Write the results as XML (as used by IETF Internet Draft processing tools) into the given file. -export-to-separate-xmls=prefix Write the results as XML; for each entry, an own file will be created. The filename will be generated from given prefix (e.g. "/tmp/MyBibTex-"), the entry key and ".xml". -nbsp=string Replace non-breakable space by given string (for example, "&nbsp;" when writing HTML). -check-urls Check URLs by downloading the content file and adding MD5, size and MIME type entries. -only-check-new-urls Combined with -check-urls, checks are only performed for new entries where MD5, size and/or MIME type are still unknown. -store-downloads=directory Combined with -check-urls, all checked references are downloaded and stored in the given directory. Existing files will be overwrit- ten. -add-url-command Add url{} commands to url tags in BibTeX export. -skip-notes-with-isbn-and-issn When reading the BibTeX file, ignore "note" items with ISBN and ISSN. -add-notes-with-isbn-and-issn When writing a BibTeX file, create "note" items with ISBN and ISSN. -non-interactive Turns on non-interactive mode. Useful for just performing URL checks and ISBN/ISSN verification. COMMANDS
After startup, bibtexconv accepts the following commands from standard input (not as command-line arguments!): cite key custom1 custom2 custom3 custom4 custom5 Select specific entry in the input BibTeX file, given by key. Optionally, up to five custom strings may be attached to the selected entry. citeAll Select all entries in the input BibTeX file. clear Clear all selections. echo string Write given string to standard output. export Export selected entries to standard output, according to configured printing template. header include file Include another export script, given by file name. monthNames jan feb mar apr may jun jul aug sep oct nov dec Changes textual representation of month names. This is necessary when non-English names are required for export. nbsp Changes textual representation of the "non-breakable space", for example &nbsp; in HTML or ~ in BibTeX. sort template template+ templatenew trailer utf8Style xmlStyle EXAMPLES
Have a look into /usr/share/doc/bibtexconv/examples/ (or corresponding path of your system) for example export scripts. The export scripts contain the commands which are read by bibtexconv from standard input. bibtexconv /usr/share/doc/bibtexconv/examples/ExampleReferences.bib -export-to-bibtex=UpdatedReferences.bib -check-urls -only-check-new-urls -non-interactive Checks URLs of all entries in /usr/share/doc/bibtexconv/examples/ExampleReferences.bib, adds MD5, size and MIME type items and writes the results to UpdatedReferences.bib. bibtexconv /usr/share/doc/bibtexconv/examples/ExampleReferences.bib </usr/share/doc/bibtexconv/examples/web-example.export >MyPublications.html Uses export script /usr/share/doc/bibtexconv/examples/web-example.export to export references from /usr/share/doc/bibtexconv/exam- ples/ExampleReferences.bib to MyPublications.html as XHTML 1.1. bibtexconv /usr/share/doc/bibtexconv/examples/ExampleReferences.bib </usr/share/doc/bibtexconv/examples/text-example.export >MyPublications.txt Uses export script /usr/share/doc/bibtexconv/examples/text-example.export to export references from /usr/share/doc/bibtexconv/exam- ples/ExampleReferences.bib to MyPublications.txt as plain text. bibtexconv /usr/share/doc/bibtexconv/examples/ExampleReferences.bib -non-interactive -export-to-separate-xmls=reference. Convert all references to XML references to be includable in IETF Internet Drafts. For each reference, an own file is generated, named with the prefix "reference.", for example reference.Globecom2010.xml for entry Globecom2010. bibtexconv /usr/share/doc/bibtexconv/examples/ExampleReferences.bib -non-interactive -export-to-separate-bibtexs= Convert all references to BibTeX references. For each reference, an own file is generated, named with the prefix "", for example Globecom2010.bib for entry Globecom2010. bibtexconv May 12, 2012 bibtexconv
All times are GMT -4. The time now is 06:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy