03-28-2011
The problem with that solution is that it doesn't actually run the sorter executable. If you check sorterfile, all you'll find is ./sorter 100
10 More Discussions You Might Find Interesting
1. Programming
I've created a c program and compiled it with gcc, in unix.
The file name is abc.c and it is run by typing the command ./abc
I have another program which creates a child process, and I need this abc program to run on that child process. I've tried execvp(), but it doesn't work.
How can I run... (2 Replies)
Discussion started by: sdsd
2 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I am new to Unix. I am trying to run a shell script (1node.sh) from within a Bash script that I created. I get the following error:
command not foundh: line 30: 1node.sh
I used Crimson Editor to make the Bash script. The weird thing is that 1node.sh will execute if I type 1node.sh... (2 Replies)
Discussion started by: modey3
2 Replies
3. Shell Programming and Scripting
Hello everybody,
Is there any way to make a script (Bash, KornShell, etc.) executable
by mouse clicking?
For example you have a file myscript.sh, you run:
$ chmod u+x myscript.sh
Therefore it becomes executable and all you need is to run from
the terminal:
$./myscript.sh... (2 Replies)
Discussion started by: dariyoosh
2 Replies
4. UNIX for Dummies Questions & Answers
hi
i have file extentioned with test.vbs. i am able to run this file n execute through command promt but i dont know how to run in shell script
example:
file name is test.vbs which contains
strSoundFile = "C:\windows\Media\Notify.wav"
Set objShell = CreateObject("Wscript.Shell")
strCommand... (5 Replies)
Discussion started by: atl@mav
5 Replies
5. UNIX for Dummies Questions & Answers
Hey all,
I'm trying to execute a program and despite it appearing to be there, I keep getting this:
-bash: ./aisdispatcher: No such file or directoryTo run it, I'm going into the directory where it is stored and running
./aisdispatcher...the result of which should just be a listing of options... (10 Replies)
Discussion started by: pmd006
10 Replies
6. Shell Programming and Scripting
Hi here's my code
${ORACLE_HOME}/bin/sqlplus /nolog <<!EOF
--step 5 create db script start
set feedback off
set heading off
set echo off
conn / as sysdba
spool ${ORACLE_SID}_db_link.sql
SELECT 'CREATE '||DECODE(U.NAME,'PUBLIC','public ')||'DATABASE LINK '||CHR(10)... (2 Replies)
Discussion started by: jediwannabe
2 Replies
7. Shell Programming and Scripting
Hi,
I'm trying to run a program from the bash prompt and I don't understand why it is returning with an error.
Dig is my C program, and it takes in parameters J4, detect, 3 and 0182F98E
var1="cygdrive/c/2i/test fixture/software/mccdaqtest/debug/Dig J4 detect 3 0182F98E"
when I do
... (6 Replies)
Discussion started by: oahmad
6 Replies
8. Shell Programming and Scripting
I wish to create an executable bash script that will run the following commands as root, that is, using sudo su
iptables-save | awk '/^
/ { print $1 }
/^:+ / { print $1 " ACCEPT" ; }
/COMMIT/ { print $0; }' | iptables-restoreMy first attempt at bash... (9 Replies)
Discussion started by: thixeqi
9 Replies
9. Shell Programming and Scripting
Does it possible to make some bash script automatic to be a executable when transfered to another pc...? (5 Replies)
Discussion started by: tomislav91
5 Replies
10. Shell Programming and Scripting
Is there a way to make this make itself executable?
Thanks. :-)
cat > somescript.sh << \EOF
#!/bin/bash
block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Block count:/ {print $NF}')
reserved_block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Reserved block count:/ {print $NF}')
perl -e... (4 Replies)
Discussion started by: drew77
4 Replies
LEARN ABOUT BSD
symcompact
symcompact(1) General Commands Manual symcompact(1)
NAME
symcompact - string compaction for object files
SYNOPSIS
symcompact [ object_name ... ]
DESCRIPTION
symcompact reduces the symbol table size of an executable file. This is done by removing unnecessary overlay transfer vectors (text sym-
bols beginning with a tilde). In a nonoverlaid program there is no need for both the underscore (_foo) and tilde (~foo) text symbol and
only the underscore form is kept. For overlaid programs if the symbol is in the base segment the tilde form is not needed and again only
the underscore form is preserved. Running symcompact typically reduces the kernel symbol table size by 250 or so symbols.
It is possible to run both symcompact and strcompact to achieve an even higher degree of symbol and string table compaction. The normal
sequence is to run symcompact first followed by strcompact. If symcompact runs out of memory it will be necessary to reverse the order and
run symcompact a second time - see the BUGS note below.
The user must have write permission to the object/executable file.
symcompact writes to stderr the count of symbols removed from the symbol table.
symcompact exits 0 if successful, and >0 if an error occurred.
SEE ALSO
symcompact(1), symorder(1)
BUGS
This program can partially negate the benefits of strcompact because multiple references to identical strings cause additional strings to
be placed in the string table. Running strcompact again after running this program fixes this problem.
The register local symbol type is removed from the executable/object file. Since the debugger really doesn't know how to deal with those
symbols this is not much of a loss and saves quite a bit of space both in the symbol table and the string table.
symcompact should not be run on .o files that will be passed to the linker. The linker will need the tilde form of the symbol if an over-
laid executable is being created.
3rd Berkeley Distribution January 25, 1994 symcompact(1)