case2: ssh -f <machine_ip> <cp file1 file2> <executable2>
Here, the executable in 'case 2' won't take command line arguments as in case of 'case 1', i.e. executable wil always read input arguments from file with name "args".
so what i tried here is i have created multiple text files with different arguments, during ssh i tried to copy these text files to file "args" and tried to execute "executable 2". But i am receving an error saying "Cannot fork into background without a command to execute.".
Can anybody suggest me the solution for this???
Thanks,
123an
Well, case2 appears to be (1) a copy and (2) a command to run. You can do this as if the entire set of commands were passed to "sh -c" as a single argument. That is, put the set of commands, separated by semi-colons ( in double (or single) quotes:
The -f option makes no difference here.
Hello,
I wish to run parallel process forked from one script.
Currently I doing is submit them in background.
For example:
---------------------------------------------------------------
#!/usr/bin/ksh
process1 &
process2 &
process3 &
.....
.....
#here I check for completion of... (4 Replies)
Hi,
Is there any way to run parallel jobs using make command?
I am using non-GNU make utility on AIX 4.3.
I want to run 2 jobs symultaneously using make utility.
Thanks.
Suman (0 Replies)
Hi All,
At present I am using a UNIX Script which is running a set of JOBS. These JOBS are to be repeated for 20 times, means the same set of JOBS are repeated by just passing different arguments (From 1 to 20).
Is there any way by which I can execute them parallel?
At present its all... (4 Replies)
how can i process jobs parallel with conditions below.
Script1.ksh
Script2.ksh
Script3.ksh
Script4.ksh
Script5.ksh
Script6.ksh
Script7.ksh
Script8.ksh
Script9.ksh
Script10.ksh
After successful completion of Script1.ksh I need to run Script7.ksh.
After successful... (4 Replies)
I am haveing 2 scripts, 1st script calls 2ed script for each parameter.(parameters are kept in a different txt file)
1st script
for x in `cat Export_Tables_List.txt`
do
sh Exp_Table.sh $x &
done
echo -e "1) following tables are successfully exported : \n" > temp
cat... (1 Reply)
Since there've been a few requests for a method to execute commands on multiple CPUs (logical or physical), with various levels of shell-, make-, or Perl-based solutions, ranging from well-done to well-meant, and mostly specific to a certain problem, I've started to write a C-based solution... (4 Replies)
Hi All,
We have a table that has to store around 80-100 million records. The table is partitioned by a column called Market Code. There are 30 partitions each corresponding to one MRKT_CD.
The source of this table is a join between 3-4 other tables. We are loading this table through SQLPLUS... (2 Replies)
I have few very huge files ~ 2 Billion rows of 130 column(CDR data) in a folder, I have written shell script need to read on each file in a folder and will create a new files based on some logic.
But problem is it's taking time to create a new file due to the size , So i dont want to corrupt... (6 Replies)
I have a requirement (in a shell script) to connect to several servers at once and execute a series of commands.
I am aware that ssh can be used for sequential execution. But since most of the commands that I need to execute take a long time, I have to go for the parallel option.
Is there... (2 Replies)
i have say x number of procedure to run, ie i have one procedure which accepts variable and i need that to run in parallel and capture the error code if in case if it fails through the unix.
sqlplus <EOF> exec test_t (abc,124); </EOF>
sqlplus <EOF> exec test_t (abc,125); </EOF>
sqlplus <EOF>... (2 Replies)
Discussion started by: ATWC
2 Replies
LEARN ABOUT DEBIAN
xspim
spim(1) General Commands Manual spim(1)NAME
xspim - A MIPS32 Simulator
SYNTAX
xspim [-asm/-bare -exception/-noexception -quiet/-noquiet -mapped_io/-nomapped_io
-delayed_branches-delayed_loads
-stext size -sdata size -sstack size -sktext size -skdata size -ldata size -lstack size -lkdata size
-hexgpr/-nohexgpr -hexfpr/-nohexfpr]
-file file -execute file
DESCRIPTION
SPIM S20 is a simulator that runs programs for the MIPS32 RISC computers. SPIM can read and immediately execute files containing assembly
language or MIPS executable files. SPIM is a self-contained system for running these programs and contains a debugger and interface to a
few operating system services.
SPIM comes in two versions. The plain version is called spim. It runs on any type of terminal. It operates like most programs of this
type: you type a line of text, hit the return key, and spim executes your command. The fancier version of SPIM is called xspim. It uses
the X-window system, so you must have a bit-mapped display to run it. xspim, however, is a much easier program to learn and use because
its commands are always visible on the screen and because it continually displays the machine's registers.
OPTIONS
xspim has many options:
-asm Simulate the virtual MIPS machine provided by the assembler. This is the default.
-bare Simulate a bare MIPS machine without pseudo-instructions or the additional addressing modes provided by the assembler. Implies
-quiet.
-exception
Load the standard exception handler and startup code. This is the default.
-noexception
Do not load the standard exception handler and startup code. This exception handler handles exceptions. When an exception
occurs, SPIM jumps to location 0x80000080, which must contain code to service the exception. In addition, this file contains
startup code that invokes the routine main. Without the startup routine, SPIM begins execution at the instruction labeled
__start.
-quiet Print a message when an exception occurs. This is the default.
-noquiet Do not print a message at exceptions.
-mapped_io
Enable the memory-mapped IO facility. Programs that use SPIM syscalls to read from the terminal cannot also use memory-mapped
IO.
-nomapped_io
Disable the memory-mapped IO facility.
-delayed_branches
Simulate MIPS's delayed control transfers by executing the instruction after a branch, jump, or call before transferring control.
SPIM's default is to simulate non-delayed transfers, unless the -bare flag is set.
-delayed_loads
Simulate MIPS's original, non-interlocked load instructions. SPIM's default is to simulate non-delayed loads, unless the -bare
flag is set.
-stext size -sdata size -sstack size -sktext size -skdata size
Sets the initial size of memory segment seg to be size bytes. The memory segments are named: text, data, stack, ktext, and
kdata. The text segment contains instructions from a program. The data segment holds the program's data. The stack segment
holds its runtime stack. In addition to running a program, SPIM also executes system code that handles interrupts and excep-
tions. This code resides in a separate part of the address space called the kernel. The ktext segment holds this code's
instructions and kdata holds its data. There is no kstack segment since the system code uses the same stack as the program. For
example, the pair of arguments -sdata 2000000 starts the user data segment at 2,000,000 bytes.
-ldata size -lstack size -lkdata size
Sets the limit on how large memory segment seg can grow to be size bytes. The memory segments that can grow are data, stack, and
kdata.
-hexgpr Disply the general purpose registers (GPRs) in hexadecimal.
-nohexgpr Disply the general purpose registers (GPRs) in decimal.
-hexfpr Disply the floating-point registers (FPRs) in hexadecimal.
-nohexfpr Disply the floating-point registers (FPRs) as floating-point values
-file file 10
Load and execute the assembly code in the file.
-execute file 10
Load and execute the MIPS executable (a.out) file. Only works on systems using a MIPS processors.
BUGS
Instruction opcodes cannot be used as labels.
SEE ALSO spim(1)
James R. Larus, ``SPIM S20: A MIPS R2000 Simulator,'' included with SPIM distribution.
AUTHOR
James R. Larus, Computer Sciences Department, University of Wisconsin-Madison. Current address: James R Larus (larus@microsoft.com), Mi-
crosoft Research.
spim(1)