Sponsored Content
Top Forums Shell Programming and Scripting getting : No such file or directory while executing a shell script Post 302245490 by tarunicon on Friday 10th of October 2008 08:46:12 AM
Old 10-10-2008
re: help

well i guess u created a script by using cat or the vi editor ..after that u need to change the permission of the script using chmod 777 filename ..since its a script u need to make it a executable ..after that u could run the script sh filename.sh ...or simply ./filename..both will work ..i guess this was what the previous person was trying to explain
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading file names from a file and executing the relative file from shell script

Hi How can i dynamically read files names from a list file and execute them from a single shell script. Please help its urgent Thanks in Advance (4 Replies)
Discussion started by: anushilrai
4 Replies

2. Shell Programming and Scripting

Executing script's directory

I have a shell script /home/user1/bin/sh1, how can I print out the directory of this file inside the script. Say I am in /home/user1/, then I run /home/user1/bin/sh1 I need it to print out /home/user1/bin. Thanks. (2 Replies)
Discussion started by: jasony001
2 Replies

3. Shell Programming and Scripting

Executing Multiple .SQL Files from Single Shell Script file

Hi, Please help me out. I have around 700 sql files to execute in a defined order, how can i do it from shell script (3 Replies)
Discussion started by: anushilrai
3 Replies

4. Shell Programming and Scripting

How can I get the directory of my executing script?

hi, I tried whence $0, but that just gives me the filename relative to where I am executing the script from. I need to get the full pathname. thanks (19 Replies)
Discussion started by: JamesByars
19 Replies

5. Homework & Coursework Questions

Shell Script - (file and directory)

The question is here: http://farm9.staticflickr.com/8065/8217767191_2154e64904_b.jpg My problem is that when I made up a non-existing directory, it prints out "hiii". It didn't enter the first if statement. It works if my directory exist. My Work: for fileOrDirectory in $* # all... (1 Reply)
Discussion started by: spider-man
1 Replies

6. Shell Programming and Scripting

Creating a Continuous File Reading-Executing Shell Script

I need to write something that will read and execute all the files(Mainly executable scripts) inside one or more folders; in other words, a continuous chain with a break when finished. I'm new to shell and need syntax help. I'm on Ubuntu 12.10-Gnome btw. Here are some main highlights I think... (2 Replies)
Discussion started by: linuxlololol
2 Replies

7. Shell Programming and Scripting

Shell scripting-I need a script which should watch a directory for a file with specific directory

I need a script which should watch a directory for a file with specific directory. If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column. The file should be moved to another directory and the a... (8 Replies)
Discussion started by: akashdeepak
8 Replies

8. Shell Programming and Scripting

What is the function of the following lines at the top of a shell script file: Directory and Script?

The file starts like this: Directory: <path to the script> Script: <script fife name> #!bin/ksh ##Comments <actual script> What is the use of the first two lines in the script? What if I save the file without them? What will be the effect? They are not comments. Im very new to this,... (4 Replies)
Discussion started by: remytom
4 Replies

9. Shell Programming and Scripting

Compiling and Executing a Java File With a Shell Script

I'm trying to use a shell script to compile and execute a java file. The java classes are using sockets, so there is a client.java file and a server.java file, each with their own shell script. I also want to handle the command line arguments within the shell script, not the java classes. The... (1 Reply)
Discussion started by: britty4
1 Replies

10. Shell Programming and Scripting

Shell script cannot create directory and move the file to that directory

I have a script, which is checking if file exists and move it to another directory if then mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly ... (9 Replies)
Discussion started by: digioleg54
9 Replies
ExtUtils::Helpers(3)					User Contributed Perl Documentation				      ExtUtils::Helpers(3)

NAME
ExtUtils::Helpers - Various portability utilities for module builders VERSION
version 0.021 SYNOPSIS
use ExtUtils::Helpers qw/build_script make_executable split_like_shell/; unshift @ARGV, split_like_shell($ENV{PROGRAM_OPTS}); write_script_to('Build'); make_executable('Build'); DESCRIPTION
This module provides various portable helper functions for module building modules. FUNCTIONS
build_script() This function returns the appropriate name for the Build script on the local platform. make_executable($filename) This makes a perl script executable. split_like_shell($string) This function splits a string the same way as the local platform does. detildefy($path) This function substitutes a tilde at the start of a path with the users homedir in an appropriate manner. man1_pagename($filename) Returns the man page filename for a script. man3_pagename($filename, $basedir) Returns the man page filename for a Perl library. manify($input_filename, $output_file, $section, $opts) Create a manpage for the script in $input_filename as $output_file in section $section ACKNOWLEDGEMENTS
Olivier Mengue and Christian Walde made "make_executable" work on Windows. AUTHORS
o Ken Williams <kwilliams@cpan.org> o Leon Timmermans <leont@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2004 by Ken Williams, Leon Timmermans. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.18.2 2013-05-06 ExtUtils::Helpers(3)
All times are GMT -4. The time now is 11:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy