08-14-2011
Re: Unable To Execuate Shell Script
Hi ,
Thanks For Quick Reply ,Now File Is Getting Save But When I Am Executing
The Script I Am Getting The Below Error
!/bin/ksh: not found [no such file or directory]
Thanks
---------- Post updated at 07:56 PM ---------- Previous update was at 07:54 PM ----------
Quote:
Originally Posted by
anudeepkumar123
Hi ,
I Have Installed Red Hat Linux 5(Guest O.S) In Vmware And Host O.S Is Windows 7 .I Am Unable To Run Script File In It Is Giving Error E32: No File Name.For All Basic Commands It's Working
Fine Like Cat ,Cmp.,etc .
I Logging As Root User And Working Under The Directory I Am Using KSH Shell .
This Are The Steps I Am Following For Creating A Script .
1). vi (
To Open Vi Editor )
2). vi filename ( vi firstprog.ksh)
#!bin\kash
date
3) !wq
Saving And Quit) When I Am Saving The Scrpit I Am Getting The Below Error E32:No File Name
Thanks&Regards
Hi ,
Thanks For Quick Reply ,Now File Is Getting Save But When I Am Executing
The Script I Am Getting The Below Error
!/bin/ksh: not found [no such file or directory]
Thanks
---------- Post updated at 07:56 PM ---------- Previous update was at 07:56 PM ----------
Execute
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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. Shell Programming and Scripting
Hi Perl/UNIX experts,
I have a problem in running a shell script from my perl script (auto.pl).
I run the perl script using
perl auto.pl
from the shell prompt
The shell script picks the files in "input" folder and procesess it.
The shell script blue.sh has this code.
export... (16 Replies)
Discussion started by: hifake
16 Replies
3. Shell Programming and Scripting
i have a small problem getting a batxh shell script to run in shell
this is the code
the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command
this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Discussion started by: wingchun22
1 Replies
4. Shell Programming and Scripting
Hi,
I am using HP-UNIX.
I have a requirement as below
I have to change env twice like:
cadenv <env>
cadenv <env>
ccm start -d /dbpath
ccm tar -xvf *.tar
ccm rcv ....
mv *.tar BACKUP
but after I do the first cadenv <env> , I am unable to execute any of the later commands .
... (6 Replies)
Discussion started by: charlei
6 Replies
5. Shell Programming and Scripting
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies
6. Shell Programming and Scripting
Hi guys,
I have a simple question, I want to store the output of the following command:
As you can see it is running all the time, and we get a new line every 3sec.
I just want to store these new lines into a single variable, so I can use it into a script.
To clear the screen, and... (4 Replies)
Discussion started by: Thireus
4 Replies
7. Shell Programming and Scripting
Hi, this's Pom. I'm quite a new one for shell script but I have to do sql on shell script to query some information from database.
I found a concern to get a new line...When I run my script, it retrieves all data as wondering but it's shown in one line :(
What should I do? I'm not sure that... (2 Replies)
Discussion started by: Kapom
2 Replies
8. Shell Programming and Scripting
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies
9. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT DEBIAN
atfsit
atfsit(1) ShapeTools atfsit(1)
NAME
atfsit - A program to prepare files for version control
SYNOPSIS
atfsit [ -cFhfsmM ] [ -qad ] [ -Iflags ] [ -Rflags ] [ -tdirectory ] file1 ...
DESCRIPTION
Atfsit is a semi-intelligent program to prepare files for ShapeTools version control. This involves putting the correct type of headings
at the top of the file so that retrv will update a header and log changes in the file.
By default, atfsit will use default headers ``hard-wired'' into itself for each different file type that it ``knows'' about. (See below
for list of known file types).
If the -tdirectory option is specified, then atfsit will use ``.template.suffix'' files (where ``suffix'' is a suffix that atfsit ``knows''
about) found in directory. If a directory name is not specified on the command line, then the environment variable TEMPLATES is used. If
$TEMPLATES is not set, then the environment variable, HOME is tried.
The following template files are recognized:
Template NameFile Type
---------------------------------------
.template.c Standard C
.template.h C Include
.template.f Fortran
.template.shShell Script
.template.makeMakefile
.template.manManual
Atfsit is ``semi-intelligent'' in that it can guess the type of headers to put in the file by the type of file (C program, C include, make-
file, shell script, or manual). It determines the file type by looking at the name of the file. If the name of the file is ``Makefile''
or ``makefile'', then the file type is taken to be for make(1). The suffix after the last ``.'' in the file name is then used. The fol-
lowing table shows the suffixes that atfsit knows about:
Suffix File Type
---------------------------------------------
c C Program
F C Program (with compile flags)
h C Include
f Fortran
mk Make(1) file
sh Shell Script
csh Shell Script
[1-9] Manual (digits 1 - 9)
If the environment variable ``ATFSDIR'' is present, then atfsit will attempt to make a link from it to ``AtFS'' in the current directory if
the -I option is used and there is no directory called ``AtFS'' already, in the current directory. If the -I option is used and ``ATFS-
DIR'' is not specified in the environment, then a normal directory called ``AtFS'' will be created. This feature can be overrided with the
-d option.
OPTIONS
c Force file type to be ``Standard C''.
F Force file type to be ``Standard C''. Add a special header-line for recording of compile-time options in addition to the default
header. The inserted line has the form static char *ConfFlg = CFFLGS. CFFLGS must be a string value. As it is very inconve-
nient, to define the proper value of CFFLGS from the command-line, this feature is more intended to be used from within Make-
files.
h Force file type to be ``C Include''.
f Force file type to be ``Fortran''.
M Force file type to be ``Manual''. Note: If you also specify the ``Iflags'' option, atfsit will run vadm(1) to tell ShapeTools
what kind of comment string to use for the manual file.
s Force file type to be ``Shell Script''.
m Force file type to be ``Makefile''. Note that this does the same thing as the -s option does. It just prints a different mes-
sage.
t Do not use any Template files for the headers.
q Be quiet. Don't print out what is going on. Only error messages are printed.
d Do not attempt to make the directory ``AtFS''. See above for more info.
a Turn off auto guessing of file type.
Iflags Check In file. Run save(1) on the file with ``flags'' being passed onto save(1) as the command line arguments.
Rflags Run vadm(1) with ``flags'' as the command line arguments.
FILES
/tmp/atfsit* - temporary buffer
~/.template.* - template files to use as the header.
AUTHOR
Michael Cooper (mcooper@usc-oberon.ARPA)
Modified for use with ShapeTools by Axel.Mahler@cs.tu-berlin.de
SEE ALSO
save(1), vadm(1), retrv(1).
DIAGNOSTICS
Complains about the usual stuff. (i.e. - the specified file doesn't exist, or it can't read it...just things like that.)
atfsit-1.15 Tue Jun 29 16:29:16 1993 atfsit(1)