10-28-2007
Unzip returns 127 = ???
And show us your script perhaps.
10 More Discussions You Might Find Interesting
1. Programming
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
struct stat s;
main() {
char c;
if (fork()==0) {
system("clear");
do {
printf("myAI\\>§ ");
scanf("%s",c);
if(stat(c,&s)>-1) {... (3 Replies)
Discussion started by: C|[anti-trust]
3 Replies
2. UNIX for Dummies Questions & Answers
I am new to unix, and this is my 1st post on this board. Looking for some advice about a cron job in my server.
I am running a cron task that references a script which runs several other scripts and compiles them into a report and emails it to me. If I run the script manually, I will... (2 Replies)
Discussion started by: Steeler_fan
2 Replies
3. HP-UX
Hi
I've a problem with Hp-ux 11.11 9000/800/rp3440 system. Already the software for driver & its patch are loaded for HBA Fibrechannel card, but still the fibrechannel card is showing the status "Unclaimed" . What will be reason for this? How to get the status "Claimed" ?
Pl. help me out.... (4 Replies)
Discussion started by: Mike1234
4 Replies
4. Shell Programming and Scripting
Hi all,
I'm trying to generate a series of txt files starting from a plain csv file
part of my code:
#!/bin/ksh
INSTALLDIR=/Users/ME/Installdir
CSV=CSV.csv
TMP=/tmp/$(basename $0).txt
tr -s "\r" "\n" < /$INSTALLDIR/$CSV > $TMP
function Makefiles
{
printf '%24s:%30s\n' "sometext"... (1 Reply)
Discussion started by: Jive Spector
1 Replies
5. Shell Programming and Scripting
I have a simple script that checks for certain printers and records them to a file.
When I run the script manually at the command prompt, it works perfect, but when I run the script via cron, nothing happens. No errors reported, and no records are written out. I'm using Solaris 10. Below is the... (4 Replies)
Discussion started by: lmatlebyane
4 Replies
6. UNIX for Advanced & Expert Users
Hi All,
Can any one help me to solve the issue.
The Issue is, i have started the sendmail service on my RHEL 4 update 6 box, I am able to send the mail from my box to almost all of the Email Id's except few.
Exampe,
test mail.
.
Output is :the message is sent.
now if I send the... (2 Replies)
Discussion started by: akhtar.bhat
2 Replies
7. Red Hat
This is the first time for using sudo for me.
# visudo
## Allows people in group admin to run all commands
%admin ALL=(ALL) ALL
# groupadd admin
# useradd temp
# usermod -a -G admin temp
# id temp
uid=506(temp) gid=506(temp) groups=506(temp),507(admin)
#
#sudo... (5 Replies)
Discussion started by: getrue
5 Replies
8. UNIX for Dummies Questions & Answers
Hi There,
---------
file1
-------
~c asd@ac.com
--------------
Now i am using below command
cat file1|mailx -s " testing" -r " My Name" abc@tech.com (3 Replies)
Discussion started by: Tapan Sharma
3 Replies
9. Shell Programming and Scripting
Platform: RHEL 5.4
In the below text file I have strings like following.
$ cat /tmp/mytextfile.txt
DISK1
DISK10
DISK101
DISK102
DISK103
DISK104
DISK105
DISK106
DISK107
DISK108
DISK109
DISK110
DISK111
DISK112
DISK113
DISK114 (8 Replies)
Discussion started by: kraljic
8 Replies
10. Shell Programming and Scripting
I want to join two files , with file 1 col 3 and file 2 col 1 as key.
The join command is erratic for some reason. File 2 is a master file having all the names, and file 1 has some values. I want to add the names from fil2 in file 1. If I use the original master file, some output is missing.
... (16 Replies)
Discussion started by: ritakadm
16 Replies
LEARN ABOUT OPENSOLARIS
torsocks
TORSOCKS(1) General Commands Manual TORSOCKS(1)
NAME
torsocks - Shell wrapper to simplify the use of the torsocks(8) library to transparently allow an application to use a SOCKS proxy. Basi-
cally a renamed, patched tsocks.
SYNOPSIS
torsocks [application [application's arguments]]
or torsocks [on|off]
or torsocks
DESCRIPTION
torsocks is a wrapper between the torsocks library and the application what you would like to run socksified.
SUMMARY
By default, torsocks will assume that it should connect to the SOCKS proxy running at 127.0.0.1 on port 9050. This is the default address
and port for Tor's socks server on most installations.
In order to use a configuration file, you must set the environment variable TORSOCKS_CONF_FILE with the location of the file.
If TORSOCKS_CONF_FILE is not set, torsocks will attempt to read the configuration file at /etc/torsocks.conf. If that file cannot be read,
torsocks will use sensible defaults for most Tor installations, i.e. it will assume that you want to use a SOCKS proxy running at 127.0.0.1
(localhost) on port 9050.
For further information on configuration, see torsocks.conf(5).
OPTIONS
[application [application's arguments]]
run the application as specified with the environment (LD_PRELOAD) set such that torsocks(8) will transparently proxy SOCKS connec-
tions in that program
[on|off]
this option adds or removes torsocks(8) from the LD_PRELOAD environment variable. When torsocks(8) is in this variable all executed
applications are automatically socksified. If you want to use this function, you HAVE to source the shell script from yours, like
this: "source /usr/bin/torsocks" or ". /usr/bin/torsocks"
Example:
". torsocks on" -- add the torsocks lib to LD_PRELOAD
". torsocks off" -- remove the torsocks lib from LD_PRELOAD
[show|sh]
show the current value of the LD_PRELOAD variable
<without any argument>
create a new shell with LD_PRELOAD including torsocks(8).
AUTHOR
This script was created by Tamas SZERB <toma@rulez.org> for the debian package of tsocks. It (along with this manual page) have since been
adapted into the torsocks project and modified.
TORSOCKS
TORSOCKS(1)