Tags » Shell Script

Returning values from SQL [Unix/Linux]

The following code show a script to pull the output of a query into a shell script variable.

#!/bin/bash
RETVAL=`sqlplus -silent scott/tiger <<EOF
SET PAGESIZE 0 FEEDBACK OFF VERIFY OFF HEADING OFF ECHO OFF… 46 more words

Shell Script

Shell script to download files or directories from SVN (or web)

Hello everybody!

Today I bring to you a new public Gist that holds a shell script that you can use to download 1 file, a list of files or an entire directory from the SVN (or any webpage for what matters) with a single run. 36 more words

Silvarion

Send Mail using Shell Script

This script is to send mail

#!/bin/bash

From=”admin@virtualtweets.wordpress.com”
To=”dmin@virtualtweets.wordpress.com”
Cc=”dmin@virtualtweets.wordpress.com”
Subject=”$(hostname) : $(date)”
Report > msg
MsgFile=”msg”
cat <<EOF | /usr/lib/sendmailĀ  -i -t
From: $From… 9 more words

Mail

Utility Script

When working with shell scripts it’s always useful to have common functions grouped in one or more scripts that can be sourced from the running script needing the functions. 49 more words

Silvarion

Bash Dates

Hello Everyone, Working with bash dates in shell script is an important factor sometimes. Suppose running a SQL query with date and you want date to start from last 30 days till now. 78 more words

Shell Script

raspi-config SSH Error

Earlier this afternoon I was configuring a Raspberry Pi 2 using raspi-config onĀ the most recent version of Raspbian. When I went to the Advanced Options menu and selected the option enable or disable SSH access I saw this error. 615 more words

Raspberry Pi

Iterating through PL/SQL result in SHELL

Here’s a simple way to integrate PL/SQL and Unix shell scripts. The following example will work with Bourne (sh), Bourne-Again (bash) and Korn (ksh) shell interpreters. 243 more words

Code