10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the following bash script lines in a file named test.sh.
#!/bin/bash
#
# Write Date to cron.log
#
echo "Begin SSI Load $(date +%d%b%y_%T)"
#
# Get the latest rates file for processing.
#
d=$(ls -tr /rms/data/ssi | grep -v "processed" | tail -n 1)
filename=$d
export filename... (3 Replies)
Discussion started by: ginowms
3 Replies
2. Shell Programming and Scripting
hi everobody
kindly consider the following
in tclsh
I understand that we can do the following
%exec UnixCmd arg1 arg2
but if I assinged the arguments to a list insde tclsh how can I use them back
i.e
%set ArgList
%exec UnixCmd
%exec Unixcmd $list
%exec
all the... (1 Reply)
Discussion started by: Blue_shadow
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
i don't understand this part of one script
exec >> $Log_File 2>&1 (1 Reply)
Discussion started by: messi777
1 Replies
4. UNIX for Advanced & Expert Users
Hi,
on AIX 6.L
I want to copy the result of grep -v to test directory then :
`hostname`@oracle$ls -l | grep -v RINT -exec cp {} test
grep: can't open -exec
grep: can't open cp
grep: can't open {}
test:°`.
Can you help me ?
Thank you. (3 Replies)
Discussion started by: big123456
3 Replies
5. Programming
As a part of learning shell scripting I was just going through some already created scripts there I found-
exec tclsh "$0" $(1+"$@")
Here I was able to find what exec ,tclsh does & o/p of same but I could not find usage & output of $(1+"$@").
Can anybody pls expalain me usage... (1 Reply)
Discussion started by: rediffmail
1 Replies
6. Shell Programming and Scripting
Hi,
I am having a problem, with setting the FS in TCLSH, maybe someone knows the answer.
I have a Tclsh/Tk script, and i´m trying to get all (only) the running processes for the given user like this:
foreach process {
puts stdout $process;
}
This also works, but... (2 Replies)
Discussion started by: laptop87
2 Replies
7. Shell Programming and Scripting
Hello,
I got a file I am using, but I cannot understand what this file is doing...
Can someone explain?
Here is a part of the file:
#! /usr/bin/tclsh
set mctal r]
set pow
set SS
set a
set b
set c
set d
set e
set f
set g
set h (0 Replies)
Discussion started by: jolecanard
0 Replies
8. Shell Programming and Scripting
Hello,
I am new to this site, so sorry ahead of time if this is not the right place for this question.......anywhooooo
I am having troubles with forking new processes in wish. Take the following code example:
****************************
package require Tclx
puts "TCL VER: "
proc... (3 Replies)
Discussion started by: pghamami
3 Replies
9. Shell Programming and Scripting
In bash wen we press tab the name of the files get completed automatically. Likewise there is no auto completion feature in tclsh. Any idea if there is any way to get this feature or should we implement ??
Please suggest (0 Replies)
Discussion started by: Laksmi
0 Replies
10. UNIX for Advanced & Expert Users
I have read that exec "replaces the current process with a new one".
So I did
$ exec ls
and after this executed, my shell disappeared. I am assuming that my shell had PID xyz, and when I did exec ls, this ls got pid xyz, and when it terminated, there was no more shell process running, and... (5 Replies)
Discussion started by: JamesByars
5 Replies