Sponsored Content
Top Forums Shell Programming and Scripting Why commands inside bash script lost effectiveness? Post 302897972 by Corona688 on Thursday 17th of April 2014 11:29:57 AM
Old 04-17-2014
Are you actually just running these "from a script" or are you running these from some other, separate environment like a crontab or the like? If it's run from a shell not descended from your login, it won't have your login information.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

bash and ksh: variable lost in loop in bash?

Hi, I use AIX (ksh) and Linux (bash) servers. I'm trying to do scripts to will run in both ksh and bash, and most of the time it works. But this time I don't get it in bash (I'm more familar in ksh). The goal of my script if to read a "config file" (like "ini" file), and make various report.... (2 Replies)
Discussion started by: estienne
2 Replies

2. Shell Programming and Scripting

How to use ftp commands inside shell script? Help please

Dears, I'm new in shell scripting and i need your help, i would like to know how can i create a script to ftp to a certain unix/linux machine/server IP address and get a file for example without user intervention? How can i force the script to use a certain username and password to access this... (4 Replies)
Discussion started by: Dendany83
4 Replies

3. Shell Programming and Scripting

Unix commands failing inside the shell script

When my script deals with large input files like 22Gb or 18 GB the basic commands like sort or join fails when run from inside the shell scripts. Can there be any specific reason for this? For e.g. sort -u -t "," -k1,1 a.csv > a.csv.uniq" sort -u -t "," -k1,1 b.csv > b.csv.uniq" The... (3 Replies)
Discussion started by: esha
3 Replies

4. UNIX for Dummies Questions & Answers

using awk inside bash script?

Hello, I'm trying to write a bash script that will query the current system time (OS X 10.6.6) and then convert the output from HH:MM:SS into time in seconds. The output of the system time command (systemsetup -gettime) is returned as: Time: HH:MM:SS so I wanted to use awk -F: to grab... (5 Replies)
Discussion started by: xaiu
5 Replies

5. Homework & Coursework Questions

brand new user!.. Lost on BASH script writing

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I have just gotten into writing bash scripts for a class, part of the assignment is to read and be able to tell... (4 Replies)
Discussion started by: Byrang
4 Replies

6. Shell Programming and Scripting

RMAN commands inside crontab shell script

Hello I'm trying to write simple script to delete archive logs for RMAN, unfortunately it's not working, I tried two way to do that: #!/bin/ksh echo "Start ....." rman target=/ << EOF RUN { delete force noprompt archivelog until time 'sysdate-10'; } EXIT; EOF echo "END ..." echo... (6 Replies)
Discussion started by: samer.odeh
6 Replies

7. Shell Programming and Scripting

Expect not working inside my Bash script

I am trying to execute expect command inside by small bash script to login into servers using key authentication method. My script is as follows: #!/bin/bash HOST=$1 /usr/bin/expect -c " spawn ssh -i /root/.ssh/id_rsa root@$HOST expect -exact "Enter... (3 Replies)
Discussion started by: John Wilson
3 Replies

8. Shell Programming and Scripting

Is it possible to change paths inside a bash script?

i have some script with some paths inside it. The idea is to some files which is on desktop copy and move to another location. Problem is that inside script is similar to this: cp test1.zip /root/help/ because I allways have another zip files, does it possible to have some input which ask me... (18 Replies)
Discussion started by: tomislav91
18 Replies

9. Shell Programming and Scripting

Executing sed command inside a bash script

I want to run commands inside a bash script. An example is I want to pass the command in a string as regexp as an argument to the script, then run sed on the bash variable sed.sh regexp sed.sh "-i \"s/<p>//g\"" then call sed "$regexp" $fl (3 Replies)
Discussion started by: Kangol
3 Replies

10. UNIX for Beginners Questions & Answers

Saltstack commands inside bash scripts donā€™t work

In a Redhat Linux environment, I could run salt commands on the $ prompt but not inside my bash scripts. It will say command not found and the $PATH variable is exactly the same outside and inside the script. !#/usr/bin/bash echo “running”¯ salt "*" cmd.run ‘ls' exit Output:-... (8 Replies)
Discussion started by: gurudewa
8 Replies
EXMENEN(1)						      General Commands Manual							EXMENEN(1)

NAME
exmenen, exmendis - enable or disable extra menus for GNOME, KDE and other XDG menu-spec compliant desktops SYNOPSIS
exmenen (--system | --local) [ module ] exmendis (--system | --local) [ module ] DESCRIPTION
This manual page documents briefly the exmenen and exmendis commands. exmenen is a script that enables the specified extra applications menu on either a system, or per-user basis. It does this by creating symlinks within /etc/xdg/menus/applications-merged/ (system wide), or ${XDG_CONFIG_HOME}/menus/applications-merged/ (per-user). If the XDG_CONFIG_HOME environment variable is unset, its default is taken to be ${HOME}/.config . Likewise, exmendis disables an extra applications menu by removing those symlinks. It is not an error to enable a menu which is already enabled, or to disable one which is already disabled. EXAMPLES
exmendis --system electronics exmenen --system electronics Disables the system wide extra electronics menu, enables it for the current user. FILES
/usr/share/extra-xdg-menus Directory with .menu files defining the available extra modules. /etc/xdg/menus/applications-merged Directory with links to the files in extra-xdg-menus for system-wide enabled extra menus. ${XDG_CONFIG_HOME}/menus/applications-merged Directory with links to the files in extra-xdg-menus for per-user enabled extra menus. If XDG_CONFIG_HOME is unset, the directory used will be ${HOME}/.config/menus/applications-merged AUTHOR
This manual page was written by Peter Clifton <pcjc2@cam.ac.uk> for the Debian GNU/Linux distribution, as it is a Debian-specific script with the package. exmenen, exmendis and this manpage were derived from scripts and documentation written by Daniel Stone for the apache2 Debian package. 13 January 2008 EXMENEN(1)
All times are GMT -4. The time now is 10:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy