10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a problem with the /etc/rc.d/init.d script to automatically update STEAM GAME ARK. I've converted 3 scripts into one, but something does not work correctly ...
The problem is in the file latestavailableupdate.txt / line 36/39. It think the problem is with script, it wrongly... (2 Replies)
Discussion started by: kshishu
2 Replies
2. Shell Programming and Scripting
Hello guys I'm new to shell scripting and I need to make a game using shell script. I want to know if it is possible for me a total noob to shell scripting to make this game.
The game concept is simple:
First thing when you launch the script you get a menu in which you select if you want to... (3 Replies)
Discussion started by: Othmane
3 Replies
3. Shell Programming and Scripting
GitHub - deepgrace/tetris: Tetris implementation in all kinds of Programming Languages
Usage: bash Tetris_Game ] ] ] ]
Range:
#!/bin/bash
# Tetris Game // The Art Of Shell Programming
box0=(4 30)
box1=(4 30 4 32)
box2=(4 30 5 32)
box3=(4 28 4 30 4 32)
box4=(4 28 4 30... (69 Replies)
Discussion started by: complex.invoke
69 Replies
4. UNIX for Advanced & Expert Users
I am not very much familiar with telnet based scripting so I would need your help to directly submitting sms as deliver_sm or submit_sm msg to SMSC (IP & system_id and password are already known). So, need your help to provide such script. I previously used such script but my harddisk crashed and... (0 Replies)
Discussion started by: wasay
0 Replies
5. Shell Programming and Scripting
Okay so I'm making a simple text based game that branches into different scenarios. By branching I mean branching off into whole different files with that part of the game in it. I got tired of working on scenario 1 so I'm working on scenario 2. As I get started and try to test it, I get an... (3 Replies)
Discussion started by: lemonoid
3 Replies
6. Shell Programming and Scripting
Hi,
i am not able to run the loop in nohup directly.
nohup 'for i in $(seq 10); do echo $i;./mscript.sh $i; done'
can some one help me how to run this directly in nohup?
---------- Post updated 03-15-12 at 12:20 AM ---------- Previous update was 03-14-12 at 11:59 PM ----------
From... (0 Replies)
Discussion started by: johninweb
0 Replies
7. HP-UX
Hi, a simple question : How can I sent user and password to the command su.
I need this for a script, but the problem is the command su wait for the password.
Thanks. (2 Replies)
Discussion started by: mvaquerm
2 Replies
8. Shell Programming and Scripting
Original Code Taken from here:
http://www.tldp.org/LDP/abs/html/bashver2.html#EX79
The code in the above link displays 4 unique 13 cards hands. I've modified it to deal a hand unique 2 card hand to 2 different players, then deal 5 unique community cards as in Texas Holdem (3 cards, then 1... (8 Replies)
Discussion started by: earnstaf
8 Replies
9. UNIX for Dummies Questions & Answers
Can someone please tell me how to ssh into a computer when I have a username and password? Like something like:
ssh username : pass @ server
Can I do something like that directly? (6 Replies)
Discussion started by: Legend986
6 Replies
10. Linux
Well Acording to my job...
Anyhelp plz.
I need some basic scripting stuff. (3 Replies)
Discussion started by: Irish Jimmy
3 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)