Sponsored Content
Top Forums Shell Programming and Scripting Bash on Fedora error on basic script Post 303040299 by ngabrani on Saturday 26th of October 2019 05:27:10 AM
Old 10-26-2019
Thanks, adding the current directory to Path did the trick.
This User Gave Thanks to ngabrani For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Why do basic unix commands not work in BASH

Why do basic unix commands such as "ls" not work in "BASH" mode?? I am frustrated!! (10 Replies)
Discussion started by: PixelLover
10 Replies

2. Shell Programming and Scripting

Basic bash 'for loop' usage

Hi! I have a simple question about using a for loop. I'm trying to open up all the zip files in the currect directory with ark, but I am getting the error "bash: syntax error near unexpected token `for $i ; do ark $i ; done ; I looked in the info pages for bash, but I can't seem to figure... (2 Replies)
Discussion started by: Orange Stripes
2 Replies

3. UNIX for Dummies Questions & Answers

Basic Unix bash script help

Hello there Been using Unix bash scripting for two days now so am very new to this. I am currently doing a project now and i'm basically making a noughts and crosses game (or tic tac toe). I have created the board using an array. When I try and check to see if the array is empty using an If... (3 Replies)
Discussion started by: ChrisHoogie
3 Replies

4. Shell Programming and Scripting

Monitoring a file - Basic Bash Question

*This is not homework I am new to UNIX and want to try this Monitoring a file demo* *If this is the wrong forum please move it - im new to the forums* $1 = the file to be monitored $2 = the time for the file to sleep If the file gets changed (using -nt) it will send my username mail saying... (2 Replies)
Discussion started by: Nolan-
2 Replies

5. Shell Programming and Scripting

Basic bash -- pulling files from an FTP server

Hi guys. Very new to this so apologies if this is ridiculously obvious, but I am not sure why this isn't working. I want to pull a file off an FTP server. I currently do it through windows, which is no problem, but I want to move everything to a Linux box I just installed. wget won't work as the... (4 Replies)
Discussion started by: majormajormajor
4 Replies

6. Shell Programming and Scripting

Basic bash, echo in loop for

Hi, I am trying to make a script to manage log. I want to write the name of the .gz I moved and the date : for i in `ls $replog/*.gz` do echo " $i " `echo $i date +%d:%m:%Y` `echo $datee `>> $replog/mrnet.log mv $i /var/log/vieux-logs done I need to echo... (10 Replies)
Discussion started by: Dabless
10 Replies

7. Shell Programming and Scripting

Help in making a basic bash script

Hi All, I am trying to monitor CPU load of few processes, with the same name. The output that I get from top is the following 28171 root 20 0 1089m 21m 3608 S 103 0.3 15:16.89 /opt/ppp//h264rtptranscoder.bin --videoPort=14504 --audioPort=14505 27589 root 20 0 1060m 23m... (3 Replies)
Discussion started by: liviusbr
3 Replies

8. Shell Programming and Scripting

Basic Bash algorithm with sum/subtraction

Hi all, i'm making some test on a data file. Imagine i have two columns inside it : 80377,20 80377,20 80379,19 80378,20 80380,20 80382,20 80381,21 Just to understand how can it works, imagine to subtract 100 to the number in the first column when the other one in the second... (4 Replies)
Discussion started by: Board27
4 Replies

9. UNIX for Beginners Questions & Answers

Beginner bash - basic shell script 'while' help...

Hi everyone, first time visitor to these forums here. Keeping a long story short I've been attempting to learn how to code in bash. I have VERY little previous experience with coding languages besides simply copying and pasting batch scripts for Windows. So, with that in mind I've followed a... (4 Replies)
Discussion started by: Meta
4 Replies

10. Fedora

Bash shell problem on Fedora Linux

My shell environment is bash and desktop environment is LXDE. When I use the up and down button on the keyboard to view the command history on bash shell, many times part of the command from the history remains on the line. For example /home/milhan > ssh somedomain.org /home/milhan > then when I... (5 Replies)
Discussion started by: milhan
5 Replies
mod_alias(3erl) 					     Erlang Module Definition						   mod_alias(3erl)

NAME
mod_alias - URL aliasing. DESCRIPTION
Erlang Webserver Server internal API for handling of things such as interaction data exported by the mod_alias module. EXPORTS
default_index(ConfigDB, Path) -> NewPath Types ConfigDB = config_db() Path = NewPath = string() If Path is a directory, default_index/2 , it starts searching for resources or files that are specified in the config directive DirectoryIndex. If an appropriate resource or file is found, it is appended to the end of Path and then returned. Path is returned unaltered, if no appropriate file is found, or if Path is not a directory. config_db() is the server config file in ETS table format as described in Inets Users Guide. . path(PathData, ConfigDB, RequestURI) -> Path Types PathData = interaction_data() ConfigDB = config_db() RequestURI = Path = string() path/3 returns the actual file Path in the RequestURI (See RFC 1945). If the interaction data {real_name,{Path,AfterPath}} has been exported by mod_alias; Path is returned. If no interaction data has been exported, ServerRoot is used to generate a file Path . con- fig_db() and interaction_data() are as defined in Inets Users Guide . real_name(ConfigDB, RequestURI, Aliases) -> Ret Types ConfigDB = config_db() RequestURI = string() Aliases = [{FakeName,RealName}] Ret = {ShortPath,Path,AfterPath} ShortPath = Path = AfterPath = string() real_name/3 traverses Aliases , typically extracted from ConfigDB , and matches each FakeName with RequestURI . If a match is found FakeName is replaced with RealName in the match. The resulting path is split into two parts, that is ShortPath and AfterPath as defined in httpd_util:split_path/1 . Path is generated from ShortPath , that is the result from default_index/2 with ShortPath as an argument. config_db() is the server config file in ETS table format as described in Inets User Guide. . real_script_name(ConfigDB,RequestURI,ScriptAliases) -> Ret Types ConfigDB = config_db() RequestURI = string() ScriptAliases = [{FakeName,RealName}] Ret = {ShortPath,AfterPath} | not_a_script ShortPath = AfterPath = string() real_name/3 traverses ScriptAliases , typically extracted from ConfigDB , and matches each FakeName with RequestURI . If a match is found FakeName is replaced with RealName in the match. If the resulting match is not an executable script not_a_script is returned. If it is a script the resulting script path is in two parts, that is ShortPath and AfterPath as defined in httpd_util:split_script_path/1 . config_db() is the server config file in ETS table format as described in Inets Users Guide. . Ericsson AB inets 5.5.2 mod_alias(3erl)
All times are GMT -4. The time now is 11:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy