Sponsored Content
Full Discussion: Unix shell script project
Top Forums Shell Programming and Scripting Unix shell script project Post 302394147 by tlarkin on Wednesday 10th of February 2010 02:53:42 PM
Old 02-10-2010
If you are going to do the web thing, Drupal (a CMS) just released a module called 'drush' which gives you a command line application for drupal. You could automate a download, install, setup, and update of drupal all from a script.

Then drop the script in the web root and have it run from there, so that way the script can tell where the web root folder is. Be a pretty cool way to automate the install of drupal and it's modules.

At my job I automate the imaging process with shell scripts. I create custom trigger policies that a binary can pull from a server using a third party product. Then have it create local accounts, set system specific settings, enable remote access for said local accounts, shift a few things around, bind the client to specified domain controller, and so on. Then at the end of it, it clears all logs and temp files and forces a reboot.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run unix commands in a new shell inside a shell script?

Hi , I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell. So scenario is that - I need to have one shell script which is ran as a part of crontab - in this shell script I need to do a... (2 Replies)
Discussion started by: hkapil
2 Replies

2. Programming

unix project

hi, i need to do a unix project.. can anyone suggest a good project.. something other than chat,and so on (1 Reply)
Discussion started by: chittra
1 Replies

3. AIX

Difference between writing Unix Shell script and AIX Shell Scripts

Hi, Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies

4. Shell Programming and Scripting

project idia in shell

could any one provide me any new real time project idea in shell scripting i am learning shell script and wants to do some real time development . (1 Reply)
Discussion started by: useless79
1 Replies

5. Shell Programming and Scripting

awk, shell script reverse engineering app generator - project

Hi, this is fantastic forum for shell programming and scripting, so please let me to introduce you with my very old concept to have web form/s with radio, select, input fields and have an application generating valid, syntax error free scripting code. The same or alike questions are asked... (2 Replies)
Discussion started by: darius2
2 Replies

6. Shell Programming and Scripting

FTP from windows to unix server using unix shell script

Hi, Is it possible to ftp a huge zip file from windows to unix server using unix shell scripting? If so what command i need to use. thanks in advance. (1 Reply)
Discussion started by: Shri123
1 Replies

7. News, Links, Events and Announcements

A new project was posted on The UNIX and Linux Forums project board.

A new project was posted on your project board. Project title: Bash Shell Tutoring Estimated Budget: $50/hr Start date: Immediately Required skills: Linux, Bash, Shell, UNIX I work as a datawarehouse designer and developer. Although I usually stick to the role of an analyst,... (0 Replies)
Discussion started by: Neo
0 Replies

8. Shell Programming and Scripting

Learning project ideas - shell, python, UNIX tools, system administration

Hi guys, I am currently working as a system administration engineer, administering telecom applications on linux/unix platforms. I want to learn new things and improve the ones that i have and for this i though to really work on some project or something but i lack of ideas. I want to be... (2 Replies)
Discussion started by: capitanui
2 Replies

9. Shell Programming and Scripting

How can i run sql queries from UNIX shell script and retrieve data into text docs of UNIX?

Please share the doc asap as very urgently required. (1 Reply)
Discussion started by: 24ajay
1 Replies

10. Shell Programming and Scripting

How to pass Oracle sql script as argument to UNIX shell script?

Hi all, $ echo $SHELL /bin/bash Requirement - How to pass oracle sql script as argument to unix shell script? $ ./output.sh users.sql Below are the shell scripts and the oracle sql file in the same folder. Shell Script $ cat output.sh #!/bin/bash .... (7 Replies)
Discussion started by: a1_win
7 Replies
DRUSH(1)						      General Commands Manual							  DRUSH(1)

NAME
drush - shell scripting interface for Drupal SYNOPSIS
drush [options] command... DESCRIPTION
drush is a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt. Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, exe- cutes sql queries and DB migrations, and misc utilities like run cron or clear cache. OPTIONS
-r path, --root=path Drupal root directory to use (default: current directory) -l uri, --uri=uri URI of the drupal site to use (only needed in multisite environments) -v, --verbose Display extra information about the command. -q, --quiet Hide all output -d, --debug Display even more information, including internal messages. -y, --yes Assume 'yes' as answer to all prompts -s, --simulate Simulate all relevant actions (don't actually change the system) -p, --pipe Emit a compact representation of the command for scripting. -h, --help A detailed help system, use drush help help for complete help. --version Show drush version. If you get tired of typing options all the time, you can add them to your drush.php alias or create a drushrc.php file. These provide addi- tional options for your drush call. They provide great flexibility for a multi-site installation, for example. See example.drushrc.php. COMMANDS
Drush is all based around "commands" that are usually defined in various modules. help Print the help message. Use --filter to limit command list to one command file (e.g. --filter=pm). cache-clear (cc) Clear a specific cache, or all drupal caches. core-cli (cli) Enter a new shell optimized for Drush use. core-cron (cron) Run all cron hooks. core-status (st) Provides a birds-eye view of the current Drupal installation, if any. php-eval (eval) Evaluate arbitrary php code after bootstrapping Drupal. updatedb (updb) Apply any database updates required (as with running update.php). variable-get (vget) Get a list of some or all site variables and values variable-set (vset) Set a variable. watchdog show Shows recent watchdog log messages. Optionally filter for a specific type. pm-enable (en) Enable one or more extensions (modules or themes). pm-disable (dis) Disable one or more extensions (modules or themes). pm-download (dl) Download projects from drupal.org or other sources. pm-uninstall Uninstall one or more modules. pm-updatecode (upc) Update Drupal core and contrib projects to latest recommended releases. pm-update (up) Update Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb). sql-cli (sqlc) Open a SQL command-line interface using Drupal's credentials. sql-connect A string for connecting to the DB. sql-dump Exports the Drupal DB as SQL using mysqldump. This manual only lists a few of the most frequently used builtin commands shipped with the Drush core, since other Drupal modules and third-party "command files" may extend this list significantly. The canonical source of information for the available commands and their usage is the online help system. More information on each command is also available through drush help <command>. Most commands have shortcuts indicated in parenthesis. FILES
/etc/drush/drushrc.php /usr/share/doc/drush/examples/example.drushrc.php SEE ALSO
cvs(1), svn(1), wget(1). AUTHOR
Drush was originally developed by Arto for Drupal 4.7 (this alpha code can still be found in the DRUPAL-4-7 branch). In May 2007, it was partly rewritten and redesigned for Drupal 5 by frando. Since 2008, the module has been maintained by Moshe Weitzman, Owen Barton and Adrian Rossouw. This manual page was written by Antoine Beaupre <anarcat@debian.org> in June 2009 for the Debian project (but may be used by others). January 11, 2011 DRUSH(1)
All times are GMT -4. The time now is 07:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy