9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
when I execute from psql prompt, I get the result, when I try to automate
using a shell script, the query is not working
# `/usr/bin/psql -U postgres -d coba1 -c "select name from users where
"Date" > current_date - 30;"`
ERROR: column "Date" does not exist
LINE 1: select... (2 Replies)
Discussion started by: srilinux09
2. Shell Programming and Scripting
I am getting the following error while passing parameter to a shell script called within awk script. Any idea what's causing this issue and how to ix it ? Thanks
sh: -c: line 0: syntax error near unexpected token `newline'
sh: -c: line 0: `./billdatecalc.sh ... (10 Replies)
Discussion started by: Sudhakar333
3. Shell Programming and Scripting
We are using two shell scripts, script.sh,env.sh, where env.sh will be called inside script.sh. The variable inside env.sh is used as $var in script.sh.But while running the script its not identifying that variable. Is there any permission needed to call a script inside another script.
... (3 Replies)
Discussion started by: banupriyat
4. Shell Programming and Scripting
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
Discussion started by: marcoss90
5. Shell Programming and Scripting
I am newbe to scripting and have just taken over following script from previous developer. I am getting following error when running the script.
line 70: syntax error near unexpected token `do
Could some help me to rectify the error please. Thanks in advance for your... (9 Replies)
Discussion started by: Pahadia
6. Shell Programming and Scripting
I need help in the following script. I want to grep the sql errors insert into the error table and exit the shell script if there is any error, otherwise keep running the scripts.
Here is my script
set user = $USER
set pass = $PASS
echo... (2 Replies)
Discussion started by: allinshell99
7. Shell Programming and Scripting
I have the following table in MYSQL: (the structure looks broken in this forum but if you copy/paste it into notepad, it'll look right):
| Field | Type |... (0 Replies)
Discussion started by: tezarin
8. UNIX for Dummies Questions & Answers
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
9. UNIX for Dummies Questions & Answers
I have written a small shell script which logs into each oracle database on the server and displays whether it is in archivelog mode or not.. The script is as under:
dblist=`ps -ef | grep smon | grep -v grep |cut -d'_' -f3`
for ohome in $dblist; do
sqlplus -s /nolog <<... (2 Replies)
Discussion started by: jalpan.pota
CPANPLUS::Shell(3pm) Perl Programmers Reference Guide CPANPLUS::Shell(3pm)
CPANPLUS::Shell - base class for CPANPLUS shells
use CPANPLUS::Shell; # load the shell indicated by your
# config -- defaults to
use CPANPLUS::Shell qw[Classic] # load CPANPLUS::Shell::Classic;
my $ui = CPANPLUS::Shell->new();
my $name = $ui->which; # Find out what shell you loaded
$ui->shell; # run the ui shell
This module is the generic loading (and base class) for all "CPANPLUS" shells. Through this module you can load any installed "CPANPLUS"
Just about all the functionality is provided by the shell that you have loaded, and not by this class (which merely functions as a generic
loading class), so please consult the documentation of your shell of choice.
Please report bugs or other issues to <email@example.com<gt>.
This module by Jos Boumans <firstname.lastname@example.org>.
The CPAN++ interface (of which this module is a part of) is copyright (c) 2001 - 2007, Jos Boumans <email@example.com>. All rights reserved.
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
CPANPLUS::Shell::Default, CPANPLUS::Shell::Classic, cpanp
perl v5.16.2 2012-10-11 CPANPLUS::Shell(3pm)