10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I tried to execute a while within another while, but not working. Any suggestions? Thanks in advance
#!/bin/ksh
typeset -i i=1
typeset -i j=1
while ]
do
while ]
do
print i = $i j= $j
(( j=j+1 ))
done
(( i=i+1))
done (3 Replies)
Discussion started by: Soham
3 Replies
2. Shell Programming and Scripting
Dear All,
I have script.
Dest=""
IFS='
'
for translation in $(echo $MY_MAP)
do
t1=$(echo $translation | cut -d"=" -f1)
t2=$(echo $translation | cut -d"=" -f2| cut -d"," -f1)
if
then
Dest=$UNX/$u_product_path/$u_study_path/$UNXTR/$t2
break;
... (4 Replies)
Discussion started by: yadavricky
4 Replies
3. Shell Programming and Scripting
$ cat tmp.sh
#!/tools/bin/bash
echo $BASH_VERSION
$ cat tmp.pl
#!/usr/local/bin/perl
use strict;
use warnings;
use DBI;
use CGI;
system("tmp.sh");$ tmp.sh
3.2.48(1)-release
The result is as expected.
$ tmp.pl
3.2.25(1)-releaseThe result is not as expected.
The shell directive in... (5 Replies)
Discussion started by: carloszhang
5 Replies
4. Shell Programming and Scripting
Dear Friends,
I am trying to get a script in c-shell working but no way! I don't know why but on my mac was working and now on linux is not!
Basically the script should accept a root_file_name and work in batch on files. This is the script:
#!/bin/csh -fn
setenv IMAGIC_BATCH 1
... (3 Replies)
Discussion started by: Mandrake83
3 Replies
5. UNIX for Dummies Questions & Answers
i wrote a shell program in Home Directory.
and i changed to other directory.
i want to try to execute shell script in Other Dir.
it is not executed.
how can i make this script to execute in other directory also??
Thanks,
Arun (11 Replies)
Discussion started by: arun508.gatike
11 Replies
6. Shell Programming and Scripting
hi,
i need to check the existence of all files starting with abc in a directory. The code works fine with a particular file name, but the file existence is not detected when i use wildcard character (abc*)
kindly suggest what could be the issue :confused:
src_filename1=$AI_LANDING/abc*... (11 Replies)
Discussion started by: spirit10
11 Replies
7. Shell Programming and Scripting
Hello Unix Gurus,
I have:
A list of parameters that repeat (in .txt file)
Example: params.txt
Series: XYZ
Manufacturer: ...
Software Version: ...
Year made: ...
Series Series: XYZ
Manufacturer: ...
Software Version: ...
Year made: ...
Series Series: ABC
Manufacturer: ...
... (7 Replies)
Discussion started by: lapiduslost
7 Replies
8. Shell Programming and Scripting
Hi,
I'm using FreeBSD 6. I want to know which Shell I'm using. So I gave the command:
-sh-3.1$ ps -p $$
PID TTY TIME CMD
15547 pts/1 00:00:00 sh
Which shell is "sh"? Is it C Shell or Bourne Shell or Korn Shell?
Also, are Bourne & Korn shell one and the same or are... (4 Replies)
Discussion started by: freephoneid
4 Replies
9. Shell Programming and Scripting
Hello all,
Any idea how to check whether a variable holding null value or not. if -z option works fine in bash, where as it is not working in sh.
bash-3.00$ sh
$ TEST=
$ if ; then
> echo "Null"
> else
> echo "Not null"
> fi
sh: test: 0403-004 Specify a parameter with this command.... (2 Replies)
Discussion started by: rijeshpp
2 Replies
10. Shell Programming and Scripting
This code has worked for years and still does in my production environment. But it's failing in my development environment now. The cd works but the creation of node1, jnum, and node2 fails. Oddly the output shows a line from from the awk script at the end of the code during the setting of each... (6 Replies)
Discussion started by: gillbates
6 Replies
platform::shell(3tcl) Tcl Bundled Packages platform::shell(3tcl)
__________________________________________________________________________________________________________________________________________________
NAME
platform::shell - System identification support code and utilities
SYNOPSIS
package require platform::shell ?1.1.4?
platform::shell::generic shell
platform::shell::identify shell
platform::shell::platform shell
_________________________________________________________________
DESCRIPTION
The platform::shell package provides several utility commands useful for the identification of the architecture of a specific Tcl shell.
This package allows the identification of the architecture of a specific Tcl shell different from the shell running the package. The only
requirement is that the other shell (identified by its path), is actually executable on the current machine.
While for most platform this means that the architecture of the interrogated shell is identical to the architecture of the running shell
this is not generally true. A counter example are all platforms which have 32 and 64 bit variants and where a 64bit system is able to run
32bit code. For these running and interrogated shell may have different 32/64 bit settings and thus different identifiers.
For applications like a code repository it is important to identify the architecture of the shell which will actually run the installed
packages, versus the architecture of the shell running the repository software.
COMMANDS
platform::shell::identify shell
This command does the same identification as platform::identify, for the specified Tcl shell, in contrast to the running shell.
platform::shell::generic shell
This command does the same identification as platform::generic, for the specified Tcl shell, in contrast to the running shell.
platform::shell::platform shell
This command returns the contents of tcl_platform(platform) for the specified Tcl shell.
KEYWORDS
operating system, cpu architecture, platform, architecture
platform::shell 1.1.4 platform::shell(3tcl)