1,891 Topics

Member Avatar for
Member Avatar for javier_ccs

hello, i made a routine in expect that connects via ssh to a juniper firewall, makes a backup of the configuration and saves it into a text file, so far it's working fine, and since it was working so fine i decided to add it to cron in order to …

Member Avatar for javier_ccs
0
129
Member Avatar for skulkarni

Hi, I'm trying to write a shell script that accepts wildcards as arguments. But instead of the wildcards expanding into the list of files from the current directory, I'd like to have them expand into files from another directory. For example, I have a script called test.sh in the folder …

Member Avatar for jim mcnamara
0
174
Member Avatar for GunBao

Hi all, i'm a novice in Shell Programming.. Recently im working on a sch project to create a system which allows user to login, logout, change password, save password.. Some of the requirements are: 1. Check correct userid before asking for password. 2. In unlocking, ask for password only. Userid …

0
56
Member Avatar for darklord

What I am trying to do is to scan a text file word by word and find all words of 4 character or less then output these words to a file, but the problem is I don't know a unix command that can scan the file this way. The Grep …

Member Avatar for jim mcnamara
0
156
Member Avatar for fili00

hey everybody, I just wanted to know how I can print out with awk or others only one line and not a whole column what is made by print$1. I have a data which contains 205 lines and I want for example only the 6th line. I tried with this …

Member Avatar for fili00
0
196
Member Avatar for Manojsah

Hi All, I am implementing simple SHELL similar to bash having functionality that support some BUILT-IN commands like cd, kill, bg, fg, job, wait. It should also support piping and job control. please Guide me how to start this. Thanks manoj

Member Avatar for Manojsah
0
128
Member Avatar for systest

I am trying to find out how to stream a file so that if gives me back how many times a certain field label occurred. File example: Cat black 100 home lost Dog brown 632 street lost Dog black 839 home owned Pig pink 123 mud farm Dog white 345 …

Member Avatar for perniciosus
0
93
Member Avatar for Wolfy

I have these two projects due tomorrow for extra credit in my Unix class and I have no idea how to write them. I really need the extra credit to bump my grade up a little. Any help would be greatly appreciated. Here are the descriptions: Project One: A) Create …

Member Avatar for jim mcnamara
0
102
Member Avatar for gal

I am attempting to write a script that would read entries from a file (one at a time) and for each entry it should cut the given word from caricature 8 till the 3rd from last character. I wrote the following more $TEMP2 | grep join | awk '{print $3}' …

Member Avatar for jim mcnamara
0
70
Member Avatar for raj_thota

Hi, I am Rajesh. I am totally new to shell scripting. I have to prepare a shell script which comapres two directory tree structures ( directory contents comparision is not necessary). for example, suppose I had installed a software system long back and now I want to upgrade that software …

Member Avatar for jim mcnamara
0
419
Member Avatar for alex05

Write a script named killdup. The script sorts all the lines in a file supplied to it as the first argument, and removes duplicate lines. The script stores the resulting output in a file whose name is given by the second argument. I know how to sort it, but how …

Member Avatar for jim mcnamara
0
333
Member Avatar for gundi

Hi! I would like to restore my system to yesterdays, since the changes that I have made has made a bad impact on the htdocs folder, so I rpefere to make a system restore, can you help me plaese..

Member Avatar for chrisbliss18
-1
155
Member Avatar for gg234

Hi, I want to configure my logrotate configuration file as follows we need keep all clients monthly logs to /var/log/apache2/logs folder Under this folder we have different clients directories.Each directory should contain the logfiles that is access.log and error.log files for each folder.Every month end logrotate should run and it …

0
68
Member Avatar for mmiikkee12
Member Avatar for mawe
0
543
Member Avatar for aashiqbhatti

Dear All, I am using CGI and bash Shell scripting programming. I want to upload a file bye Web based application in CGI and pure Shell Scripting. Not in Perl. Please help how to Upload a file using bash Shell Scripting and CGI. Thanks advance. Aashiqbhatti

Member Avatar for manojkumarnayak
0
549
Member Avatar for go4mohit

i have a bash script which takes a string as command line argument and synthesises it using festival.I need to invoke this script every time a user presses a keyboard key(or a particular combination of keys) with the selected text.. can someone tell me how this can be done..

0
53
Member Avatar for antrieb

I need to create a shell script that controls the users runlevel at every startup/logon of the linux system. the user should be prompted with a menu screen taht asks for their desired runlevel. The user should be presented with the following 3 choices: ¤ Single User Mode ¤ Full/Extended …

Member Avatar for shanenin
0
101
Member Avatar for MrRx7

Hello this is my first post on these forums. For a little back ground into this, I recently installed a Linux server with the purpose of recording matches via a program called HLTV. Now what I want to do is take the individual .dem files compress them one by one …

Member Avatar for MrRx7
0
80
Member Avatar for mark007

Hi all, I am writing a script that requires the simple functionality of reading lines from a text file...and writing several of these to a new file.. The lines I want to write to the new file contain tabs and I have not been able to write these lines. Here …

Member Avatar for winbatch
0
76
Member Avatar for jkristos

So I'm really new but I have written a simple bash shell script filter (using someone elses conversion utility) to insert a copyright text line into a MIDI file. The script works fine on the first file in the directory, however the whole point of writing this script for me …

Member Avatar for jkristos
0
125
Member Avatar for jabra0

Hey guys, been working on a tool called getwifi for a while now. It is a tool written in shell that let's a user join wireless networks in order. You can configure it to join any of the networks and change the order in a configuration file. It supports WEP …

0
65
Member Avatar for nwc

Can anyone give me a one-liner that adds a timestamp to the output of vmstat -n 1 Perhaps using awk?

Member Avatar for gritty
0
283
Member Avatar for avcert1998

Hi, I am trying to (echo ls -l $i) but it's not printing if someone can help me....I am trying to ls -l everything in the arrary....Thanks in advance [B] script: [/B] #/usr/bin/ksh typeset -i cnt=0 while read line do myarray[$cnt]=$line ((cnt = cnt + 1)) done < myfile for …

0
56
Member Avatar for jindalarpan

hey friends i m facing one problem that on sever their is fedora core 4 and when ever temp(/tmp) is filled server go show. can any one provide me with the script that can automatically cleans up /tmp after some days or when temp is going to fill thanks

Member Avatar for Cain
0
134
Member Avatar for rinque

hi, I got a problem with using this 'cmdtool' command. I use cmdtool to open up a new window in a script. But I need to disable the 'close' button on the top right of this new window (the 'x' button) during the execution of a portion of my program. …

0
44
Member Avatar for satimis

Hi folks, I'm prepared to write a simple script to execute 20+ commands and could not figure out how to make use of "loop" subject to certain conditions. If without conditions[code]#!/bin/bash cmd1="code1" #the exact/full command cmd2="code2" #the exact/full command cmd3="code3" #the exact/full command etc. cmd1 || exit 1 cmd2 || …

0
113
Member Avatar for warangalboy
Member Avatar for chrchcol

mail -s "subject" [email]chris.collins@fuse.net[/email] < email What can I add to this line and where to automatically create a blind carbon copy? Also if possible what can I add to this line and where if possible to add the address from? Thanks

Member Avatar for techniner
0
128
Member Avatar for chrchcol

I need to find a way to use a bash script to take a line like this " <!-- STANDARD FTP :: DELETE THIS BLOCK FOR SECURE FTP AND UNCOMMENT THE SECURE BLOCK BELOW --> <tr> <td valign="middle" align="center" height="35"> <a href="http://!domain!/uftp/">Click here to login to your FTP site.</a> </td> …

Member Avatar for shanenin
0
228
Member Avatar for chrchcol

Suppose I had a directory name of company.domain.com where company was diff everytime. How could I read the company part of the name in as one of the variables in my bash script?

Member Avatar for shanenin
0
150
Member Avatar for maxmouse

Hello, I have a data file that has names of varying lengths that are listed in columns. ie: [CODE] Ranjit Singh Dean Johnson Ken Whillans Karen Thompson Peter Robertson Rich Gardener Sandeep Jain Ken Whillans John Thompson Cher Cher Karen Patel John Jacobs Davinder Singh Dean Johnson Sandeep Jain Karen …

Member Avatar for maxmouse
0
138
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
153
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
380
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
242
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
82
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
139
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
135
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
68
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
291
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
172
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
202
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
173
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
134
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
102
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
161
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
153
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
265
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
68
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
64

The End.