1,890 Topics

Member Avatar for
Member Avatar for ciccio81

i have a problem :rolleyes: i have write this script ************************************** #!/bin/bash #use command mail for send a mail present in a directory # i repeat this for how many e-mail are stored in my directory # count number of file in directory nummail= ls | wc -l while [$nummail …

Member Avatar for shanenin
0
146
Member Avatar for warangalboy

Hello , Im trying to dump the content from a url in bash shell script but was unable to get. im using the following code URL="[I]'some url[/I]=$var'"; > temp system "-dump -nolist $URL > temp"; Plz let me know how can i dump the content of the url

Member Avatar for shanenin
0
377
Member Avatar for contactnaveen

Hey all, Im new to shell scripting. Plz suggest me some good websites. I searched google but i dont know which one to follow. Thanx in advance Cheers, Naveen. :)

Member Avatar for shanenin
0
241
Member Avatar for droolin

I have been writting several .sh shell scripts on my home machine to do various automated tasks. Some deal with regard to backing up remote servers to my home machine. On my home machine, I do not run a mail server for I am connected to the internet via an …

Member Avatar for Cain
0
77
Member Avatar for ciccio81

Hi, i have need to send mail using a script in bash shell...but i don't know how i can do...so can some one help me... :sad: . Thanks a lot bye bye

Member Avatar for ciccio81
0
138
Member Avatar for winbatch

Here's what I'm trying to do... I want to connect to a command line application and send it instructions from inside a script. I need to do a loop as there are multiple things I want to do. I was able to accomplish this by connecting and disconnecting inside the …

Member Avatar for winbatch
0
132
Member Avatar for rhnaeco

I am trying to use Simpson's Law to find the area in some profiles i have and i'd like to do this in a in a shell script as this how the data has been created. an example of the file ( without the brackets): (1) (2) (a) 12.146 -0.65 …

0
67
Member Avatar for gritty

I have a script that I'm working on to pad files with spaces. The spaces need will vary. This is what I have so far but it isn't working. Any suggestions? #!/bin/bash echo -n "Enter filename " read filename echo -n "Enter start size " read start echo -n "Enter …

Member Avatar for gritty
0
1K
Member Avatar for matvrix

It there a way to validate a string that >> Does not use characters like #$@ in the password. >> It must contain 1 upper case letter, 1 lower case letter, 1 number & must end in a letter. >> It must be 6-11 characters using Regular Exp ? Any …

Member Avatar for shanenin
0
273
Member Avatar for icui

I made a little script that searches and substitutes parameters in a configuration file but I've a problem: Configuration file: conf.tmp [code] parametro1=mario parametro2=ugo parametro3=elena parametro4=sara [/code] Script: [code] #!/bin/bash -x TMP_FILE=./test.tmp CONF_FILE=./conf.tmp TOT_PARAMETERS=$#; scratch="" if test $[TOT_PARAMETERS%2] -ne 0 then echo "Usage: $0 desc" exit 1 fi if test …

Member Avatar for icui
0
170
Member Avatar for nwc

Does anybody know of any way to mix something like tail up with something like wc and get a scrolling "new lines per second" number? Or maybe there's a util that specifically does this?

Member Avatar for nwc
0
200
Member Avatar for STP72

I am new to bash shell writing and I need some help. I need to ask a user a name to search for. From the value the user has entered the information is pulled from a file called phonebook which displays the users name,address and telephone number. Then I have …

Member Avatar for shanenin
0
165
Member Avatar for msteudel

[CODE]#!bin/bash mysql -u user --password=password << eof use mydatabase; SELECT version FROM versions WHERE versionid = 'LIST'; eof[/CODE] I'd like to get the value from the query into a variable. Any ideas how I could do that?

Member Avatar for msteudel
0
131
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
100
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
158
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
142
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
261
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
109
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
185
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
282
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
195
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
83
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
102
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

The End.