Sponsored Content
Top Forums Shell Programming and Scripting Few doubts on Linux scripting Post 302440926 by Maya_Pillai on Thursday 29th of July 2010 02:05:04 AM
Old 07-29-2010
Thank you so much.

Maya
 

9 More Discussions You Might Find Interesting

1. Programming

Doubts About C Compiler In Unix/linux

As all of you know whenever a program "say a.c" is complied in linux using the gcc or the cc compiler..it shows the list of errors ( if the program contains any).. i want to modify the compier script so as to list the no of errors only and not the description about the error..like" parse error " ... (1 Reply)
Discussion started by: vrs
1 Replies

2. Red Hat

qmail configuration in redhat linux - doubts

hi, How to Install & configure the qmail in redhat linux? and also how to get the free qmail package? I know the sendmail configuration in redhat linux. What is the features of qmail compared with sendmail? Regards, Jones (3 Replies)
Discussion started by: jones_linux
3 Replies

3. Shell Programming and Scripting

Unix Scripting on Linux 9.

I am NEW to Unix. I studied a few Unix Shell Commands 8 years ago in IBM AIX machines. I want to learn/brush up Unix shell commands, therefore I just installed Red Hat Linux 9 in a P3 machine. But I do not know where to start Unix Scripting in that Linux. I chose Desktop / Personnel while ... (2 Replies)
Discussion started by: risuresh
2 Replies

4. Programming

Doubts about timers in linux kernel

Hi , I am trying to learn timers in linux kernel. I am trying to write a program where I can configure a timer to tick in every 5 seconds and a function should thus exicute in every five seconds. I tried one program with the help of linux/timer.h headerfile but I couldnt get the... (4 Replies)
Discussion started by: iamjayanth
4 Replies

5. Shell Programming and Scripting

shell scripting doubts

Hello All, I am working in a reputed software firm,currently working on testing platform (manual and automation).But I am very much intersted in unix and shell scripting,I feel that I am good at beginner level of shell scripting,still I want to practise shell scripting to become excel in it.I... (1 Reply)
Discussion started by: maheshglm
1 Replies

6. Solaris

Unix scripting doubts

i hav a file like this -rwxr-xr-x 1 root controlm 4141 Nov 13 2006 /opt/scripts/prod/fvaauditlos.ksh -rwxr-xr-x 1 root controlm 3958 Nov 13 2006 /opt/scripts/prod/fvaexpchbk1.ksh -rwxr-xr-x 1 root controlm 6471 Nov 13 2006 /opt/scripts/prod/fvaexpchbk2.ksh... (24 Replies)
Discussion started by: p_satyambabu
24 Replies

7. UNIX for Dummies Questions & Answers

Linux kernel modules makefiles doubts

This query is regarding the makefiles of linux kernel modules. I saw at some sites on net it is suggesting to include the following path: KERNEL_SOURCE := /usr/src/linux... while at some places it is askibg to include /lib/modules path: KERNEL_SOURCE := /lib/modules/2.6.27-7-generic/build... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

8. Shell Programming and Scripting

Practice Linux Scripting

hey everyone, does anyone here have any good sites, or book recommendations that give you practice scripts to write? It's hard for me to think of scripts that I should write for practice. I've written a small backup script, but I'd rather have a source that gives me ideas, and practice for... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

9. Shell Programming and Scripting

Need help on bash scripting in Linux

Could anyone help me with the below scripting task. my requirement is as below 1. I have two directories /var/tmp/dir1 & /var/tmp/dir2 once i run the script test.sh it should ask as below. Please choose the below path 1 (or) 2 1. /var/tmp/dir1 2. /var/tmp/dir2 else. exit 2. once i... (4 Replies)
Discussion started by: praveenkumar.v
4 Replies
Jifty::Script::Schema(3pm)				User Contributed Perl Documentation				Jifty::Script::Schema(3pm)

NAME
Jifty::Script::Schema - Create SQL to update or create your Jifty application's tables SYNOPSIS
jifty schema --setup Creates or updates your application's database tables Options: --print Print SQL, rather than executing commands --setup Upgrade or install the database, creating it if need be --create-database Only creates the database --drop-database Drops the database --ignore-reserved-words Ignore any SQL reserved words in schema definition --no-bootstrap don't run bootstrap --help brief help message --man full documentation DESCRIPTION
Manages your database. options --print Rather than actually running the database create/update/drop commands, Prints the commands to standard output --create-database Send a CREATE DATABASE command. Note that --setup, below, will automatically send a CREATE DATABASE if it needs one. This option is useful if you wish to create the database without creating any tables in it. --drop-database Send a DROP DATABASE command. Use this in conjunction with --setup to wipe and re-install the database. --setup Actually set up your app's tables. This creates the database if need be, and runs any commands needed to bring the tables up to date; these may include CREATE TABLE or ALTER TABLE commands. This option is assumed if the database does not exist, or the database version is not the same as the application's version. --ignore-reserved-words Ignore any SQL reserved words used in table or column definitions, if this option is not used and a reserved word is found it will cause an error. --no-bootstrap don't run Bootstrap, mostly to get rid of creating initial data --help Print a brief help message and exits. --man Prints the manual page and exits. DESCRIPTION
Looks for all model classes of your Jifty application and generates SQL statements to create or update database tables for all of the models. It either prints the SQL to standard output (--print) or actually issues the "CREATE TABLE" or "ALTER TABLE" statements on Jifty's database. (Note that even if you are just displaying the SQL, you need to have correctly configured your Jifty database in ProjectRoot"/etc/config.yml", because the SQL generated may depend on the database type.) By default checks for SQL reserved words in your table names and column definitions, throwing an error if any are found. If you want to permanently turn this behaviour off you can set CheckSchema to 0 in the database section of your applications config file. BUGS
Due to limitations of DBIx::DBSchema, this probably only works with PostgreSQL, MySQL and SQLite. It is possible that some of this functionality should be rolled into Jifty::DBI::SchemaGenerator METHODS
run Prints a help message if the users want it. If not, goes about its business. Sets up the environment, checks current database state, creates or deletes a database as necessary and then creates or updates your models' schema. run_upgrades Take the actions we need in order to bring an existing database up to current. setup_environment Sets up a minimal Jifty environment. schema Returns a Jifty::Schema object. probe_database_existence Probes our database to see if it exists and is up to date. create_all_tables Create all tables for this application's models. Generally, this happens on installation. create_tables_for_models TABLEs Given a list of items that are the scalar names of subclasses of Jifty::Record, either prints SQL or creates all those models in your database. upgrade_jifty_tables Upgrade Jifty's internal tables. upgrade_application_tables Upgrade the application's tables. upgrade_plugin_tables Upgrade the tables for each plugin. upgrade_tables BASECLASS, FROM, TO, [UPGRADECLASS] Given a "BASECLASS" to upgrade, and two version objects, "FROM" and "TO", performs the needed transforms to the database. "UPGRADECLASS", if not specified, defaults to "BASECLASS"::Upgrade manage_database_existence If the user wants the database created, creates the database. If the user wants the old database deleted, does that too. Exits with a return value of 1 if the database drop or create fails. perl v5.14.2 2011-02-10 Jifty::Script::Schema(3pm)
All times are GMT -4. The time now is 10:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy