11-07-2017
Still not clear. Why should B source that script if s/he doesn't need the credentials, client path, etc.? Howsoever, wildly guessing based on the little info you gave so far and from the code you show in post#1, do
- export env=Dir1 (eliminate the $ ) in your "shell script"
- [ $env ] && select env in $(ls -l | awk '/^d/ {print $9}' . . . in global_env.sh
to circumnavigate the working directory selection but execute the rest of the script. As you can see, the -rth option to ls is unnecessary, as is the grep in the pipe.
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to select files which have different extensions such as .cpp, .cs, .h
I can select one of them as
find . -name "*.cpp"
but I want to select all of them in one command only. It should be pretty simple but I'm not able to get it. Any help with the command will be greatly appreciated. (1 Reply)
Discussion started by: MobileUser
1 Replies
2. UNIX for Dummies Questions & Answers
Problem Overview: We have a scheduler that prints report on any of the network printer.
Problem Statement: We need to find a UNIX command that picks up either A4, legal or letter size paper form the printer.
I found out a command but it's not working on our environment.
... (3 Replies)
Discussion started by: HelpMeOUt
3 Replies
3. Shell Programming and Scripting
Hello everyone,
I have a quick question about the select command in ksh. I am using it to define a menu for user selection, I have found that the REPLY var contains the input from the user, I was interested to find out if there is a system variable that contains the whole menu as an array, the... (2 Replies)
Discussion started by: gio001
2 Replies
4. Shell Programming and Scripting
Hello everyone.
I am using the select command to build a menu, here is my question:
Is it possible to generate a menu which contains several sections and have a separator between the sections without having a selection number generated in front of the separator?
This is a sample of what I would... (1 Reply)
Discussion started by: gio001
1 Replies
5. Shell Programming and Scripting
Hi All,
I am trying to use the select command & the menu.
below mention is my script
#!/bin/bash
2
3 PS3="Is today your birthday? " #PS3 system variable
4
5 echo "\n"
6
7
8 select menu_selection in YES NO QUIT
9 do
10
11 ... (1 Reply)
Discussion started by: milindb
1 Replies
6. Solaris
Hi All,
I need to get last 7 days log entries from sulog. The same has to be done for the last command.
for ex: when i search for a user "abc" in sulog, i only want to check his entries for the last 1 week.
The same has to be done for last command.
Can anyone suggest some tips.
... (0 Replies)
Discussion started by: navdeepan
0 Replies
7. Shell Programming and Scripting
I need to get total number of rows in a table by using select count(*) from table and need to assign into a variable in shell script. I used the following script, it does return the number of rows but also with oracle headers, Please help me to eliminate this headers.
Shell Script
#!/bin/sh... (16 Replies)
Discussion started by: vel4ever
16 Replies
8. UNIX for Dummies Questions & Answers
Hello everyone,
A simple question which may have a suggested solution:
I am using, and loving, the select command in a ksh93 script on AIX 6.1 to present users with menus.
I have been successful in controlling all of key input by the users, I still have an issue with the RETURN key. When the... (4 Replies)
Discussion started by: gio001
4 Replies
9. Shell Programming and Scripting
I have a select menu driven script using a case statment and cannot control what happens after a user's input is just <ENTER> or the <SPACEBAR>+<ENTER>. I want it to just hit the "MAIN" function and not redraw the options. I've look everywhere for the answer and am at a loss.
Here's the code:... (4 Replies)
Discussion started by: ambroze
4 Replies
10. Shell Programming and Scripting
Hi all,
I'm using below code
processId=`sqlplus -s ${sysuser}/${syspwd} <<CHK_PROCESS
whenever sqlerror exit sql.sqlcode;
set head off feedback off echo off pages 0
SELECT PROCESS_ID FROM LSHADMIN.DATA_DOMAIN WHERE DOMAIN_NAME = '${tabname}'
... (8 Replies)
Discussion started by: Pratiksha Mehra
8 Replies
LEARN ABOUT POSIX
katalyzer
KATALYZER(1) libkate KATALYZER(1)
NAME
katalyzer - analyzes Kate streams and displays various information about them.
SYNOPSIS
katalyzer [-hV] [-l types] [-l!] [ infile ]
DESCRIPTION
katalyzer analyzes Kate streams and displays information about them. The type of information to select is selectable on the command line.
Several multiplexed Kate streams may be analyzed at the same time.
OPTIONS
-h Show command line help.
-V Show version information.
-l types
Select the types of information to log, from the list below. These characters may be concatenated in a single -l option, as, eg, ls
does (eg, katalyzer -l Ttv). Refer to the katalyzer command line help for a fully up to date list of types.
e: errors
p: packet
c: container specific information
T: Timing
t: text
v: event
d: dump page and packets
S: statistics
-: miscellaneous information that doesn't belong in any other type
-l! Shorthand to select all information to log.
EXAMPLES
Analyzes any Kate stream in an Ogg file:
katalyzer input.ogg
Analyzes any Kate stream in an Ogg file, displaying only errors:
katalyzer -l e input.ogg
SEE ALSO
katedec(1), kateenc(1)
libkate 0.4.1 03 december 2008 KATALYZER(1)