1,817 Topics

Member Avatar for
Member Avatar for ashik_h2k

Hi, A tool is run just by the command "adutool" from anypath inside the same server. This command will execute the script in the folder "/myfolder/bin/adutool" on the same server. Since "/myfolder/bin/" is setenv'd in the PATH env variable, it runs the tool. Now my question.. Is there anyway of …

Member Avatar for eggi
0
97
Member Avatar for baku

Being given a text file create a folder that will contain 26 dictionary files as follows:first file contains the words begining with 'A', alphabetically sorted, the second file with 'B' and so on. The way I tried to solve it is attached...pls help!

Member Avatar for eggi
0
101
Member Avatar for sjcomp

Hello, I have a project that I can build with a script. I'd like to add version number + release number to my builds. I'm looking for a way to do it automatically. As a result I'd like to get something like that: [inlinecode]\deployment\v1.2.3\some.exe[/inlinecode] When I run exe I'd like …

Member Avatar for sjcomp
0
101
Member Avatar for skelly16

HI All I have a script which counts how many times a job has failed. For some reason my echo $list wont work in a variable, it works if i dont put it in a variable, but i need this in a variable so i can do a grep -c …

Member Avatar for eggi
0
161
Member Avatar for Impact4ever

Hey I need some with help this... I'm writing a script that will display, "date and time, how much memory and HD is used, plus display the type of processor info and temperature of the CPU". Then redirect the output back into the script. I found everything what the teacher …

Member Avatar for eggi
0
61
Member Avatar for vishwajit

Hi Can anyone help on how to add passwords to already created users non-interactively in shell script. Passwords will be stored in one text file. Script should automatically take passwords from file. Thanks in Advance Vishwajit

Member Avatar for eggi
0
88
Member Avatar for emile123

I need some help with this: I want to compare 2 files, and get an output file with only the new lines of File2 (compared to File1) I didnt manage to do this with diff, any suggestions how to solve this? Example: File1: A B C File2: A B C …

Member Avatar for ghostdog74
0
79
Member Avatar for cyberman111

HEY, I am new at this but I am in a middle of an excercise for an online class I am taking and I am doing a exercise and I am stuck. the instruction are as follow : write a shell script that will take information from 2 fles and …

Member Avatar for Impact4ever
0
148
Member Avatar for paurik

Hi i m devloping one intratnet appllication for that i want some hardwre information like memory type,memory bank, BIOS information. I have no rights login as super user. if anybody has any idea for that plese give me reply.

Member Avatar for eggi
0
178
Member Avatar for rajip23

Comparing two variables -------------------------------------------------------------------------------- Script #!/bin/sh hardware=PC os=WindowsNET for i in `cat newservers` do x=`sudo /opt/openv/netbackup/bin/admincmd/bpplclients |grep $i |head -40 |grep $i|awk '{print $3;exit}'` if [ "$i" -eq "$x" ] then echo "$i is already added" else echo "Need to add" fi done O/p in debug mode bash-2.05$ sh -x …

Member Avatar for blater
0
98
Member Avatar for cyberman111

Please help!!!! ok the first file is this dave 734 bob 313 carol 248 mary313 ted248 the second file is bob tuesday carol monday ted sunday alice wed dave thurs the output has to be name on call phone carol mon 248 bob tues 313 alice wed etc... i need …

0
91
Member Avatar for cyberman111

I got 2 fiels with information on both i need to put the information all in one file useing loop. how the hell do I do that, I have 2 files one named p21 the p22 and now in a looping structure i need to print an output of thei …

Member Avatar for cyberman111
0
115
Member Avatar for hschitte

I wants to get the Bios information in linux It is possible by [B]biosdecode[/B] and [B]dmidecode[/B] But they need login of super user so i am not able to run them on Rad Hat Linux I am using. Is there any other command to get Bios info, or any script …

Member Avatar for eggi
0
109
Member Avatar for cyberman111

HI i AM TRYING TO WRITE A SHELLS SCRIPT THAT WILL TAKE INFORMATION FROM 2 FILES AND COMBINE IT INTO ONE FILE USING LOOP, NOW i AM STUCK i GOT THE 2 FILES ONE IS NAMED DATE THE OTHER IS NAME THE DATE FILE CONTAINS PEOPLES NAMES WITH A A …

0
92
Member Avatar for hschitte

How I can know OS details,cpu details and the running processes of a remote machine without logging that machine.

Member Avatar for hschitte
0
122
Member Avatar for ahjiefreak

Hi, I have a list of data in text files with :- ColA ColB ColC ColD ColE ColF 12 122 2280 30 0.012987 1.776 13 118 2280 30 0.012987 1.954 14 115 2620 30 0.011321 2.131 15 113 2654 30 0.011177 2.309 16 145 1882 25 0.013110 2.487 17 112 …

Member Avatar for eggi
0
861
Member Avatar for mooglor

[code] #!/bin/bash ARCHIVE_PATH=/archive CURRENT_DATE='date +%F%H%M%S' echo running at `date` >>~/Logs.txt for FolderToSearch in $(ls -l /home/stuff/tp |grep ^d|awk '{print $9}'); do find /home/stuff/tp/$FolderToSearch/in -name '*.*'|awk '{print "zip -m " $ARCHIVE_PATH "_" $FolderToSearch "zip2arc.zip" $CURRENT_DATE;}'|bash|tee -a ~/Logs.txt; done [/code] Hi there, I'd appreciate it if anyone can tell me how to …

Member Avatar for ghostdog74
0
126
Member Avatar for hschitte

How can i get the OS name and its version in linux shell script Is there any command to extract OS details from linux shell script.

Member Avatar for jbennet
0
40
Member Avatar for Raghavansat

Hi I want to write a script file that first executes a command [code] /usr/sbin/alternatives --config java [/code] which asks to enter a number.... i want to give this input automatically by the script... i dont want human intervention....how can i do this.....

Member Avatar for eggi
0
89
Member Avatar for Raghavansat

Hi I am new to scripting.... i want to write a simple script file that executes the following command `java -version`.... i have to read the output given by this command inside my script.... [code] var_name=`java -version` echo $var_name [/code] just displays java -version i want the output of java …

Member Avatar for eggi
0
109
Member Avatar for tomok

Hi guys, Couldn't find a suitable forum for this question, please move this thread if needed. What I need to do redirect the output of TOP to a text file. Doing a simple %> top > top.txt yields the following %> less top.txt load averages: 0.88, 0.89, 0.87 11:50:49 100 …

Member Avatar for masijade
0
85
Member Avatar for maciac

I'm having real trouble getting my script to work, it's about 3 pages long and I'm having trouble with one of my if...then constructs. The code for the sub is as follows: [CODE]check_a_b () { CHECKA="634274" CHECKB="512274" if [ CHECKA=CHECKB ]; then echo "Match" echo "$CHECKA" >> "$LOGFILE" echo "$CHECKB" …

Member Avatar for eggi
0
102
Member Avatar for pdwivedi

[COLOR="Red"]We have a plant in which all the activities are recorded in a log file. We have to make an application which retrieves data from the log file,like history of a product which is passed from various work stations. we want to make an application which takes selected data from …

0
61
Member Avatar for ahjiefreak

Hi, I have multiple text files (.txt) which is a table like input:- Column1 Column2 Column3 Column4 1 5 10 15 5 10 20 40 .......... This is just one of the .txt files and I want to insert these txt files into separate worksheets in excel workbook. Any idea …

Member Avatar for eggi
0
272
Member Avatar for skelly16

Hi All Im having issues with my mail command sending data from my script. I have a korn shell script which logs onto a database and does a few select statements. The problem is i think the EOF stops my mail command sending the data. Im able to run the …

Member Avatar for eggi
0
768
Member Avatar for ahjiefreak

Hi, I have the following file input:- [CODE] 542 4795 61 543 4795 61 544 0 0 545 292 2 546 292 2 547 0 0 548 0 0 549 0 0 550 111 4 551 0 0 552 0 0 553 4614 63 554 4614 63 555 0 0 …

Member Avatar for eggi
0
146
Member Avatar for dd_sh

Hi Guys, I need a help. I am pretty new to the shell level programing. I was trying to split a long lines to a multiple lines with few conditions. I goggle for the code and found some snippets and tried to modified it but I got few strange problems …

Member Avatar for blater
0
81
Member Avatar for baku

using sed print the lines that have more than 10 characters, of each file. the files arre given as parameters. i did this: #!/bin/sh a=0 zece=10 if [ $# -eq 0 ] then echo "An error occured regarding the parameters. " else for i in $@ do if [ ! …

Member Avatar for baku
0
56
Member Avatar for seemit

Hi, I want to append each line in a file with string "foo foo" if number of charcters in the line are 4000. There can be n number of lines and this scenario applies to all lines. .. any takes? i want shell to do it. -Seemit

Member Avatar for seemit
0
94
Member Avatar for larryperl

Hi, I have two files-- file1- Quote: dn: cn=Anandmohan Singh,ou=addressbook,dc=thbs,dc=com objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson cn: Anandmohan Singh givenName: Anandmohan mail: [email]anand_ms@thbs.com[/email] mobile: 9986010455 ou: null physicalDeliveryOfficeName: ST-6th Floor sn: Singh telephoneNumber: 41827200 Extn: 7400 title: Associate Software Engineer - Trainee uid: 1432 dn: cn=Riteshkumar Mohanty,ou=addressbook,dc=thbs,dc=com objectClass: …

Member Avatar for larryperl
0
85

The End.