1,817 Topics

Member Avatar for
Member Avatar for shantanu

hi... I am trying to put the following command in shell script... but am not able to do it... can anyone help: $ pppd pty "pptp --debug --nolaunchpppd 192.168.3.67" updetach user tunnel debug noauth require-mppe-128 thanks

Member Avatar for shanenin
0
98
Member Avatar for schbrongx

Hi, Maybe I should just make a break and go through this again by myself, but there is no more coffee, so there is no break for me ;) I want to check for a given dir, exit with a message if it exists, or create the given dir otherwise. …

Member Avatar for beltagui
0
157
Member Avatar for bigfoot_80906

I need to write a script that will be able to go down the MIB tree of a device and output the values to either the screen or a .txt file. Any ideas what that would look like, or where I can search for a script to use as a …

Member Avatar for bigfoot_80906
0
132
Member Avatar for STP72

I have been tasked to write this shell script in Linux and I dont know how to begin. Can anyone help me out with this please.:cry: [font=Courier New]Create a shell script file called “lookup

Member Avatar for STP72
0
260
Member Avatar for anthony05

I have very little experience that’s why I need some help to get started I have been given a task to write a shell script in Linux and I don’t know from where to begin. Can anyone help me out with this please. 1. Move files from Windows 98 machine …

Member Avatar for Comatose
0
65
Member Avatar for petesmc

Hi, I want to switch users using a shell script, i.e. su username However, i can't figure out how to enter the password in via a shell script. Anyone know how to do this, it's definately out of the scope of my shell scriptin knowledge. Thanks -peter

Member Avatar for petesmc
0
62
Member Avatar for kambojsearch

ticket_name ticket_example.txt ticket_example.txt ticket_example.txt ticket_example.txt this is the file which i have to read i create this my using mysql connectivity i have to ignore first line and have to process rest of file this is just the sample file i got two problem i could not able to read …

Member Avatar for vgersh99
0
108
Member Avatar for moktod

I have two files containing users, but the lists differ. My goal is to take all the users in file1 and remove them from file2. What would be a simple method for completing this? -moktod

Member Avatar for Comatose
0
183
Member Avatar for danny_xmas

Hi there, I'm new to this forum and to bash scripting. I am required to write a bash shell script that processes statistical information for a website. Each web page has a "hits" file associated with it, eg. index.hits. Each line of a hits file records a single access of …

Member Avatar for vgersh99
0
152
Member Avatar for zkjian517

when i read linux boot scripts, i often meet this expression: ${1:-}. i can't understand it. what's more, i don't understand this condition: [ -z "${1:-}" ] too. anyone can help me ? thanks!!!

Member Avatar for vgersh99
0
268
Member Avatar for jopdukes

I have been given the task of writing a small shell script which does the following: It takes two arguments: the first argument is the name of the original file and the second argument is the new name for the file. If a user does not provide two arguments, a …

Member Avatar for ShaneUniStudent
0
193
Member Avatar for ShaneUniStudent

Hey guys, i am a noobie and i am after some very much anticipated help. I currently attend uni and working on a project for a subject called unix based engineering. The basic problem is; I have an input file and this input file contains a series of MOSFET parameters …

0
82
Member Avatar for absolute0net

Hello, I'm new to shell scripting, but really like it's potential. I just recently installed a local server and would like to write a script that I can chose which colo server I want to and download the latest version of that website via rsync. Here are my directives: #1 …

0
101
Member Avatar for sham
Member Avatar for in8

I have a client that chooses to run exchange. I have a fedora core box that is also on the network. On the box is a cron script that checks for a website and/or file server being up and then emails out a warning to whoever. (script was written by …

0
75
Member Avatar for phragix

I'm trying to monitor the traffic on a particular switch for a continuous hour. Could anybody please suggest me how to make it possible? For example if I wanna use snmpget command, what would I do in order to do that for an hour? _ _ _ _ _ _ …

Member Avatar for aj.wh.ca
0
87
Member Avatar for nobius

trying to write a shell script that will take any number of numerical parameters passed to it on the command line and perform addition on them...must be done in a "while" loop...have it so that it will add 2 numbers, also have it where it will print the correct sum …

Member Avatar for nobius
0
113
Member Avatar for linouna

Hello every body, I'm a student working on a project to test an anti-spam.....where I have to bomb one mailbox with many emails, I tried to use a mailbomber tool but the problem with this one is that it send one e-mail to many recipient ....what I want to do …

Member Avatar for kc0arf
0
150
Member Avatar for robsammons

Hi I am trying to write a pipeline which updates the content of a file by replacing all the mathches of the word 'and' with the symbol '&' and replaces the end of each line with my name. I have tried using sed and can replace the and's but can't …

Member Avatar for Stack Overflow
0
210
Member Avatar for ltme

Hi Everyone, I've read some threads on this forum and found some good hints already :) I'm having trouble writing a script and would appreciate all input, advice, info, or tips. I'd like to write a script that does the following; - identifies current recognized partitions - flags those with …

0
115
Member Avatar for jure

as somone know i have a url graber script, and i want to get commands from standard inn how do i do that?

Member Avatar for Paul.Esson
0
79
Member Avatar for jure

hello im trying to make a shell script that "downloads" links and topic that is to the link but i cant make it work. It is supposed to get the urls from a txt file or a file. [code] IFS=`echo -e "\n\r"` for I in `cut -f1 $1` do source=$(echo …

Member Avatar for jure
0
149
Member Avatar for jackjill

Hi guys, i'm trying to write a script for following purpose. shell program will be used by Linux/Unix sysadmins to search for SUID/SGID files. The default directory to search is the present working directory, however, the user may include a directory name on the command line as an alternative. Also, …

Member Avatar for Durai
0
125
Member Avatar for garlam

I wrote this shell script: #!/bin/sh PATH=/sbin:/usr/bin:/usr/sbin; export PATH echo "Content-type: text/html" echo "" ROOT=/app/webchecker/controller FILEIN=$ROOT/log/servcheckerstat.txt FILEDOWN=$ROOT/bin/down_ FILEOUT=/tmp/wcHtmlStat.$$ $ROOT/bin/servckhtmlstat W $FILEIN $FILEDOWN $FILEOUT $QUERY_STRING cat $FILEOUT rm -f $FILEOUT exit 0 servckhtmlstat is a C program which do all the job and write the file. The problem is: the shell …

Member Avatar for Comatose
0
104
Member Avatar for stharmon

I am trying to install 2 rpm files that need root privileges. However, I don't want to prompt the user twice. Currently I am doing the following in my script: echo "*************************************************************" echo "In order to install acme package, you need to log in as root" echo "*************************************************************" su -c …

Member Avatar for stharmon
0
371
Member Avatar for ojgibba
Member Avatar for giany

Hello i`m trying to make a script that shows me online users using the arping command. I want to enable to stop it using Ctrl +C and print me a message : Continue Y/N. And one more thing in the end to print me : We have $wc -l users …

Member Avatar for vgersh99
0
185
Member Avatar for marco83

hi, just stumbled on a problem: a friend wrote her shellscript in mandrake kwrite which also uses bash, we tried to run it on fedora core 2 gedit but won'nt run as it reads errors on curly braces and has unexpected end of file errors. It runs perfectly on mandrake …

Member Avatar for alc6379
0
98
Member Avatar for yitzhakbg

How can I login remotely and force a command/script to run in a particular X Server when are multiple X Servers running? Here's what I want to do: Force my desktop to be displayed on multiple remote machines, each of which has multiple X Servers running simultaneously. That is, force …

Member Avatar for yitzhakbg
0
123
Member Avatar for Wanderer

Hello, I am a software developer on a rather large project and I use vim as my primary file editor. The project is spread out over many paths. What I want to do is to create a large tag file for the entiere project. I used the find command to …

Member Avatar for vgersh99
0
122

The End.