03-07-2006
Actually i want to read a name from a list file, append the file extension with that name and then execute that file to create object in database, as the file contains script to create object in database, kindly help me out accordingly. Your help would be very useful for me. plzzzzzzzzz
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
file.txt contains
------------------
sat1 1300
sat2 2400
sat3
sat4 500
I need to write a shell script that will output like the below
#output
sat1.ksh 1300
sat2.ksh 2400
sat3.ksh
sat4.ksh 500
my try
-------
#!/bin/ksh
for i in `cat file.txt` (3 Replies)
Discussion started by: konark
3 Replies
2. Shell Programming and Scripting
Hi,
What's the best way to find all files under a directory - including ones with space - in order to apply a command to each of them. For instance I want get a list of files under a directory and generate a checksum for each file.
Here's the csh script:
#!/bin/csh
set files = `find $1... (5 Replies)
Discussion started by: same1290
5 Replies
3. Shell Programming and Scripting
Hi all,
I am getting : No such file or directory while executing a shell script. But i have that corresponding file in the corresponding path. It also have executable rights. Please help me out in this
Thanks in advance.
Ananthi.U (7 Replies)
Discussion started by: ananthi_ku
7 Replies
4. Shell Programming and Scripting
I want to write a shell script that will rename all the file names to today's date attached to it..
so for example i have a file names like
file1.sales.20081201.txt.c
zbrs.salestxtn.20091101.txt.inn
then it will rename both the files with todays date to it so the file names get changed... (1 Reply)
Discussion started by: rudoraj
1 Replies
5. Shell Programming and Scripting
hi i wrote following script,
#!/usr/bin/sh
for index in `ls /tmp/common/*.txt`
do
echo "$index"
done
here index is giving full path but in my program i want only file names (not along with whole path)
Eg. if in /tmp/common files are a.txt and b.txt den out should be a.txt b.txt
... (6 Replies)
Discussion started by: crackthehit007
6 Replies
6. Shell Programming and Scripting
I need to write something that will read and execute all the files(Mainly executable scripts) inside one or more folders; in other words, a continuous chain with a break when finished. I'm new to shell and need syntax help. I'm on Ubuntu 12.10-Gnome btw.
Here are some main highlights I think... (2 Replies)
Discussion started by: linuxlololol
2 Replies
7. UNIX for Dummies Questions & Answers
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (1 Reply)
Discussion started by: sravanreddy
1 Replies
8. SCO
I am downloading a zip file that contain files that are very long. I am trying to process them, but cannot. I can move the files from one directory to another at the shell prompt, but not within a shell script, I get a stat error.
The files look somewhat like this;
... (5 Replies)
Discussion started by: trolley
5 Replies
9. Shell Programming and Scripting
So I'm stumped.
First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes.
I have a text file (file_source) of terms, each line... (3 Replies)
Discussion started by: Brusimm
3 Replies
LEARN ABOUT DEBIAN
jifty::handle
Jifty::Handle(3pm) User Contributed Perl Documentation Jifty::Handle(3pm)
NAME
Jifty::Handle -- A database handle class for Jifty
DESCRIPTION
A wrapper around Jifty::DBI::Handle which is aware of versions in the database
METHODS
new PARAMHASH
This class method instantiates a new Jifty::Handle object. This object deals with database handles for the system. After it is created, it
will be a subclass of Jifty::DBI::Handle.
canonical_database_name
Returns the canonical name of the application's database (the actual name that will be given to the database driver). This name is a
lower-case version of the "Database" argument in the "Database" section of the framework config.
For SQLite databases (where the database name is actually a filename), this also converts a relative path into an absolute path based at
the application root.
connect ARGS
Like Jifty::DBI's connect method but pulls the name of the database from the current Jifty::Config.
check_schema_version [pretend => 0|1]
Make sure that we have a recent enough database schema. If we don't, then error out.
If "pretend =" 1> is passed, then any auto-upgrade action this might take is dry-run only.
create_database MODE
"MODE" is either "print" or "execute".
This method either prints the commands necessary to create the database or actually creates it, depending on the value of MODE. Returns
undef on failure.
drop_database MODE
"MODE" is either "print" or "execute".
This method either prints the commands necessary to drop the database or actually drops it, depending on the value of MODE. Returns undef
on failure.
AUTHOR
Various folks at BestPractical Solutions, LLC.
perl v5.14.2 2011-01-24 Jifty::Handle(3pm)