Sponsored Content
Full Discussion: Re: How To Run Shell Script
Operating Systems Linux Fedora Re: How To Run Shell Script Post 302547136 by anudeepkumar123 on Sunday 14th of August 2011 08:12:10 AM
Old 08-14-2011
Re: How To Run Shell Script

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 Smilie Saving And Quit) When I Am Saving The Scrpit I Am Getting The Below Error E32:No File Name


Thanks&Regards
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run unix commands in a new shell inside a shell script?

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

How to Run a shell script from Perl script in Parent shell?

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

Help need to make a shell script run for ffmpeg vhook watermaking in shell

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

How to run cmds after changing to a new env (shell) in a shell script

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

Run a shell script from one host which connext to remote host and run the commands

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

[How To?] Run shell script and get output into another shell.

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

Run SQL thru shell script: how to get a new line when run sql query?

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

To run a local shell script in a remote machine by passing arguments to the local shell script

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

Shell script run in a case statement call to run a php file, also Perl

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
ost::File(3)						     Library Functions Manual						      ost::File(3)

NAME
ost::File - SYNOPSIS
#include <file.h> Inherited by ost::Dir, and ost::RandomFile. Classes struct _fcb Public Types enum Error { errSuccess = 0, errNotOpened, errMapFailed, errInitFailed, errOpenDenied, errOpenFailed, errOpenInUse, errReadInterrupted, errReadIncomplete, errReadFailure, errWriteInterrupted, errWriteIncomplete, errWriteFailure, errLockFailure, errExtended } enum Access { accessReadOnly = O_RDONLY, accessWriteOnly = O_WRONLY, accessReadWrite = O_RDWR } enum Open { openReadOnly = O_RDONLY, openWriteOnly = O_WRONLY, openReadWrite = O_RDWR, openAppend = O_WRONLY | O_APPEND, openSync = O_RDWR, openTruncate = O_RDWR | O_TRUNC } enum Attr { attrInvalid = 0, attrPrivate = 0400 | 0200, attrGroup = attrPrivate | 0040 | 0020, attrPublic = attrGroup | 0004 | 0002 } enum Mapping { mappedRead = accessReadOnly, mappedWrite = accessWriteOnly, mappedReadWrite = accessReadWrite } enum Complete { completionImmediate, completionDelayed, completionDeferred } typedef enum Error Error typedef enum Access Access typedef enum Open Open typedef enum Attr Attr typedef enum Complete Complete typedef enum Mapping Mapping Static Public Member Functions static const char * getExtension (const char *path) static const char * getFilename (const char *path) static char * getFilename (const char *path, char *buffer, size_t size=64) static char * getDirname (const char *path, char *buffer, size_t size=256) static char * getRealpath (const char *path, char *buffer, size_t size=256) Protected Types typedef struct ost::File::_fcb fcb_t Member Typedef Documentation typedef enum Access ost::File::Access typedef enum Attr ost::File::Attr typedef enum Complete ost::File::Complete typedef enum Error ost::File::Error typedef struct ost::File::_fcb ost::File::fcb_t [protected] typedef enum Mapping ost::File::Mapping typedef enum Open ost::File::Open Member Enumeration Documentation enum ost::File::Access Enumerator: accessReadOnly accessWriteOnly accessReadWrite enum ost::File::Attr Enumerator: attrInvalid attrPrivate attrGroup attrPublic enum ost::File::Complete Enumerator: completionImmediate completionDelayed completionDeferred enum ost::File::Error Enumerator: errSuccess errNotOpened errMapFailed errInitFailed errOpenDenied errOpenFailed errOpenInUse errReadInterrupted errReadIncomplete errReadFailure errWriteInterrupted errWriteIncomplete errWriteFailure errLockFailure errExtended enum ost::File::Mapping Enumerator: mappedRead mappedWrite mappedReadWrite enum ost::File::Open Enumerator: openReadOnly openWriteOnly openReadWrite openAppend openSync openTruncate Member Function Documentation static char* ost::File::getDirname (const char *path, char *buffer, size_tsize = 256) [static] static const char* ost::File::getExtension (const char *path) [static] static const char* ost::File::getFilename (const char *path) [static] static char* ost::File::getFilename (const char *path, char *buffer, size_tsize = 64) [static] static char* ost::File::getRealpath (const char *path, char *buffer, size_tsize = 256) [static] Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::File(3)
All times are GMT -4. The time now is 11:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy