04-11-2014
ssh? dsh? The usualy way as if it were no LPARs?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can someone tell me this. thanks (1 Reply)
Discussion started by: xoxouu
1 Replies
2. Programming
Hi every one
I'm writing C program that do the following:
will creat new sample command in unix using C
let be the name is do.c, the do must execute more the one command
for example do ls ps
it will execute ls the ps
also I should create a log file the track the command and exit status of... (4 Replies)
Discussion started by: aliG4
4 Replies
3. UNIX for Dummies Questions & Answers
how to schedule a command to run after 30 mins ? (3 Replies)
Discussion started by: gridview
3 Replies
4. UNIX for Dummies Questions & Answers
Dear Unix Guru,
I have several directories as below
/home/user/
dir1
dir2
dir3
Each directory has different size. I want to print each directory size (Solaris command du -hs .)
Can you please guide me how to achieve this?
Thanks
Bala (2 Replies)
Discussion started by: baluchen
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I want to run ls -lrt command along with find command. I want to get the list of files with timestamp, owner, group and permissions for the files larger than 1024k. I tried the below command, but it displays only the file names.
ls -lrt | find . -name "*.*" -size +1024k -print
Any... (7 Replies)
Discussion started by: TonySolarisAdmi
7 Replies
6. Shell Programming and Scripting
Hello,
I am trying to learn how to pass something more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
______________________________________________
${0##*/}
run... (0 Replies)
Discussion started by: Narnie
0 Replies
7. Shell Programming and Scripting
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies
8. Shell Programming and Scripting
Hi,
I'm trying to run the following command using sh -c
ie
sh -c "while read EachLine
do
rm -f $EachLine ;
done < file_list.lst;"
It doesn't seem to do anything.
When I run this at the command line, it does remove the files contained in the list so i know the command works
ie... (4 Replies)
Discussion started by: chrispward
4 Replies
9. Shell Programming and Scripting
Hi,
I have a script below for extracting xml from a file.
for i in *.txt
do
echo $i
awk '/<.*/ , /.*<\/.*>/' "$i" | tr -d '\n'
echo -ne '\n'
done
.
I read about using multi threading to speed up the script.
I do not know much about it but read it on this forum.
Is it a... (21 Replies)
Discussion started by: chetan.c
21 Replies
10. Shell Programming and Scripting
( sleep 3
echo ${LOGIN}
sleep 2
echo ${PSWD}
sleep 2
while read line
do
echo "$line"
PID=$?
sleep 2
kill -9 $PID
done < temp
sleep 5
echo "exit" ) | telnet ${HOST}
while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies
fileutil::multi(n) file utilities fileutil::multi(n)
__________________________________________________________________________________________________________________________________________________
NAME
fileutil::multi - Multi-file operation, scatter/gather, standard object
SYNOPSIS
package require Tcl 8.4
package require fileutil::multi ?0.1?
package require fileutil::multi::op ?0.1?
package require wip ?1.0?
::fileutil::multi ?word...?
_________________________________________________________________
DESCRIPTION
This package provides a single command to perform actions on multiple files selected by glob patterns. It is a thin layer over the package
fileutil::multi::op which provides objects for the same. This package simply creates a single such object and directs all file commands to
it.
At the core is a domain specific language allowing the easy specification of multi-file copy and/or move and/or deletion operations. Alter-
nate names would be scatter/gather processor, or maybe even assembler. For the detailed specification of this language, and examples,
please see the documention for the package fileutil::multi::op.
PUBLIC API
The main command of the package is:
::fileutil::multi ?word...?
This command interprets the specified words as file commands to execute. See the section FILE API of the documentation for the pack-
age fileutil::multi::op for the set of acceptable commands, their syntax, and semantics.
The result of the command is the result generated by the last file command it executed.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category fileutil
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
KEYWORDS
copy, file utilities, move, multi-file, remove
CATEGORY
Programming tools
fileutil 0.1 fileutil::multi(n)