03-18-2013
Run the whole script. show us the error. That would help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to run the script bellow but its given me "syntax error at line 20 :'done' unexpected." error message"
can someone check to see if the script is ok? and correct me pls.
Today is my first day with scripting.
Gurus should pls help out
#!/bin/ksh
# Purpose: Check to see if file... (3 Replies)
Discussion started by: ibroxy
3 Replies
2. Shell Programming and Scripting
Hi,
A cron job CJ invokes a shell script SC. SC internally invokes multiple perl scripts. One of the perl scripts deals with Accurev (i am using Accurev CLI).
The first accurev command encountered is
accurev merge -i <<file_name>> (file name has absolute path)
When I run the perl script or... (1 Reply)
Discussion started by: singh
1 Replies
3. Shell Programming and Scripting
Hi all,
Iīve already searched the forum but canīt find what i am doing wrong.
I am trying to compare two variables using ksh under red hat. The error I get is:
-ksh: .: MDA=`md5sum /tmp/ftp_dir_after_transfer | cut -d' ' -f1 `
MDB=`md5sum /tmp/ftp_dir_before_transfer | cut -d' ' -f1 `... (3 Replies)
Discussion started by: old_mike
3 Replies
4. Shell Programming and Scripting
Hello forum,
I hope my problem is easy to solve for someone in here!
My main task is to copy a large amount of imap-accounts from one server to another. There is a tool (Perl) called imapsync which does the job exellent. Unfortunately I'm only able to run it on one account at a time.
After... (3 Replies)
Discussion started by: primaxx
3 Replies
5. Shell Programming and Scripting
Hi All,
I'm writing a shell script in KSH, where I want to store the filename, total record count and actual record count of all the source files. The source files reside in 4 different sub-folders under the same root folder.
Below is code:
#!/usr/bin/ksh... (6 Replies)
Discussion started by: jagari
6 Replies
6. Shell Programming and Scripting
the below code will search attr string inside makefile under the modelno on given path.
echo "Enter model no for searching string inside makefile"
read inputs2
#find /pools/home_unix/sapte/work/models/model/$inputs2 -name "makefile" | xargs grep "attr" \;
#;;I am getting below error.... (7 Replies)
Discussion started by: lathigara
7 Replies
7. Shell Programming and Scripting
Hi All,
Please hav a look at the below peice of script and let me know if there are any syntax errors.
i found that the below peice of Script is causing issue. when i use SFTP its working fine, but there is a demand to use FTP only. please find below code and explain if anything is wrong... (1 Reply)
Discussion started by: mahi_mayu069
1 Replies
8. Shell Programming and Scripting
While i m running below code, it is giving me the error"syntax error at line 15: `end of file' unexpected".
Pls let me know what is wrong here..i tried many ways, but no luck
dbSID="SWQE"
usrname="apps"
password="Wrgthrk3"
count=0
while
do
sqlplus $usrname/$password@$dbSID... (5 Replies)
Discussion started by: millan
5 Replies
9. HP-UX
Hi All,
We are getting a very unique error while running a shell script on HP-UX box.
Can somebody help in this regards?
The shell script is working fine on linux/solaris box.
Error:
++++++++++++++++++++++++
$/test.sh
./test.sh: 0^J30: Syntax error
$
++++++++++++++++++++++++
TIA.... (16 Replies)
Discussion started by: vai_sh
16 Replies
10. BSD
#!/bin/bash
#--------------------------------------------------------
# Setup prompt
# Author Zeeshan Mirza
# Data: 06-08-2017
#--------------------------------------------------------
if
then
. ./.profile_custom_pre
fi
umask 022
set -o vi
export EDITOR=vi
export VISUAL=vi... (3 Replies)
Discussion started by: getzeeshan
3 Replies
yade(1) General Commands Manual yade(1)
NAME
yade - open-source platform for dynamic computations
SYNOPSIS
yade [options] [ simulation.xml[.bz2] | script.py [script options]]
DESCRIPTION
yade Extensible open-source framework for discrete numerical models, focused on Discrete Element Method. The computation parts are written
in c++ using flexible object model, allowing independent implementation of new alogrithms and interfaces. Python is used for rapid and con-
cise scene construction, simulation control, postprocessing and debugging.
See http://www.yade-dem.org/ for documentation and http://www.launchpad.net/yade for the project itself.
This is version with features cgal,gts,opengl,openmp,qt4,vtk.
OPTIONS
--version
show program's version number and exit
--help, -h
show this help message and exit
--threads=THREADS, -j THREADS
Number of OpenMP threads to run; defaults to 1. Equivalent to setting OMP_NUM_THREADS environment variable.
--cores=CORES
Set number of OpenMP threads (as --threads) and in addition set affinity of threads to the cores given.
--update
Update deprecated class names in given script(s) using text search & replace. Changed files will be backed up with ~ suffix. Exit
when done without running any simulation.
--nice=NICE
Increase nice level (i.e. decrease priority) by given number.
-x Exit when the script finishes
-n Run without graphical interface (equivalent to unsetting the DISPLAY environment variable)
--generate-manpage=FILE
Generate man page documenting this program and exit
--rebuild
Re-run build in the source directory, then run the updated yade with the same command line except --rebuild. The build profile for
this build (deb) and its stored parameters will be used.
--test Run regression test suite and exit; the exists status is 0 if all tests pass, 1 if a test fails and 2 for an unspecified exception.
--debug
Run the debug build, if available.
--checks
Run a series of user-defined check tests as described in /tmp/buildd/yade-0.80.1/scripts/checks-and-tests/checks/README
--performance
Starts a test to measure the productivity
--no-gdb
Do not show backtrace when yade crashes (only effective with --debug).
SEE ALSO
yade-batch (1)
COPYRIGHT
(C) 2003--2012 Yade Developers Team
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
BUGS
Please report bugs to the project's bug tracker at
http://bugs.launchpad.net/yade
AUTHOR
Yade Developers Team (http://www.launchpad.net/~yade-dev)
yade 2012-7-4 yade(1)