1,892 Topics
![]() | |
Hi all Please help me out. I plot a file [B]output1.txt[/B] in the following way :: [CODE]gnuplot> plot "output1.txt" using 1:2 with lines, \ plot "output1.txt" using 1:3 with lines[/CODE] [B]BUT [/B] now I have [B]many[/B] data files, [CODE]output1.txt, output2.txt, output3.txt, ....,....... ,output1000.txt[/CODE] I need to [B]plot[/B] each one of … | |
i am trying to do something like [code] set var= ping google.com | find "Received = 4" if [var has something] then echo "ping well" [/code] something like that. in unix i can use the ` ` to execute shell command and set the returned value to the variable... can … | |
Hello, I'm kinda weird I know but I'm trying to encode my mp3 to a lower quality (for my mobile phone) with one line of shell (with bash). I'm wasting some more time as I would do by hand but I'm very interested. Here is my not-working line : [CODE]find … | |
I have 2 directories on Mac OS, one is the original directory and the other is an alias of the original directory. I want to list the contents of the aliased directory using shell script. I used the cd command to switch to the aliased directory, but it fails displaying … | |
hi friends i am new to shell programming and learning bourne shell....this is the syntax i am using a=10.0 b=20.0 c='echo $a+$b|bc' #wanted to add two variables in c echo $c this is the .sh file that i have created but when run in terminal,it is showing "echo $a+$b" not … | |
Hi all I run my program [B]prog.c[/B] in the following way : [CODE]$ ./prog 1 > output.txt [/CODE] where 1 is a user defined initial value used by the program. But now I want to run it for many a thousand initial values, 1-1000, and store all the outputs in … | |
Hello, I want to create a metapackage using the packagemaker command on my bash shell. The contents of the metapackage would be - Resources - package - some descriptors each to be installed at different locations. Could someone please help me out? | |
I want to compare two float values in shell script, i.e. a = 0.1 b = 0.4 if ( $a < $b )then expression1.. expression2.. expression3.. fi if ( $a > 0.0 ) then expression4.. expression5.. fi could you please suggest me how to implement in shell script ? | |
I need to put in some code in a dos batch to tell the user to enter 1, 2 3 or 4 on the keyboard. This runs the batchjob to put in a specific code into a website with JAVA. There is a little box with a user-id and i … | |
what I'm trying is to write program that accepts list of user as its argument 1- If a user or more are given as arguments, the script should reset files permissions as follows: a. Directory ~/share to 750 (if it exists). b. All regular files inside ~/share to 744. c. … | |
Dear All, I am new to korn scripts the below mention scripts for taking the system backup in NIM environment its looks okay but its not removing the old objects& system backup for more specific i am getting error on line number 83 Need help pls [code]#!/bin/ksh # # nim_mksysb … | |
Hi I have openssl command in the script and I am providing key and iv for the command. I am getting the error [quote] ./encryCipher.sh Enter the input file name: words non-hex digit invalid hex key value [/quote] and this is my script [code] #!/bin/bash # Key for the openssl … | |
Hi everybody, I am new to shell script. Please help me with this problem. I have a file test.txt with the content like this: [QUOTE] ! ((x5 * -1/3000) = x6) ((x5 * -1/2000) = x6)[/QUOTE] I have a shell script test.sh like this [CODE]#!/bin/sh while read line do echo … | |
Hello, I am fairly new to this site and am new at studying unix/linux OS. Recently I had an assignment involving finding a script that had run an administrative task such as checking file systems periodically. With it, I had to take each line and describe in my own terms … | |
Hi I have openssl command in the script and I am providing key and iv for the command. I am getting the error [quote] ./encryCipher.sh Enter the input file name: words non-hex digit invalid hex key value [/quote] and this is my script [code] #!/bin/bash # Key for the openssl … | |
I am very new to shell scripts and I was wondering if anyone could post a script which takes tv files from a TMP folder and places it to a different folder. The files and folder name syntax will be the following File to be moved TV show name - … | |
Hello Forum members, Have a nice day. I have to write a script for the following below scenario. There are 3 applications located in home directory(ie xyz/app) which havae multiple directories and files of diff format(.sh,log,other formats). 1: I have to find the hardcoded IP_ADD 's which are loacted in … | |
Hey guys, Sorry if this is in the wrong section, couldn't find a section for working on batch files. Anyway, here's my problem. I've made a firefox theme, and am distributing it. In order for the theme to work properly, the user needs to copy two files into a directory … | |
Ok wild stab in the dark as i am new to this. I am trying to sutomate an FTP from UNIX box to another UNIX box. Further to aumating an FTP, the file needs to be renamed and a small amount of editing which is the same editing each time. … | |
This is for an assignment for a class. I am a novice at this and I am kind of lost. I keep on getting sybtax errors on line 6 near Tuseday. Here is the code. Any help would be great. [CODE]#!/bin/bash echo choose a day echo Monday, Tuseday, Wednesday, Thursday, … | |
okay so i got a little script that from button links load different information within the same page what im trying to achieve is pulling php coding to the same file but each time i try it throws up errors below is the code that is giving me a problem … | |
How can I make use of sed (Stream Editor) to parse a html file for the required data I needed? Kindly explain to me. [url]http://www.daniweb.com/forums/post1354118.html#post1354118[/url] | |
I want to run a program every time windows starts with a certain user's credentials . If i did that in bat file ,it will prompt for the user's password.How can i automate the insertion of password? | |
Hi Frorum Members, I have an encrypted file which consists the usernames and Pwd in the encrpyted form.the file is _config.db_ids which will open with customize command mkidcfg.when we open this file with this command it will display four options 1:search2:add:update:exit and i will add a record ie unames and … | |
Attempting to create a script that reads from to separate files, one file has list of IP address and host types, second file has list of host types also. The goal of the script is to return result of the pings and insure the host type listed in the first … | |
can anyone tell me how to do the pyramid like in the attached file :- i want it simple program with explanation how it works if you can. PLEASE HELP.:icon_cry::icon_cry::icon_cry: | |
Normally i would google, but I did not know how to google the problem I am facing now also being a newbie in shell scripting. Okay, the requirement is user1 has sudo rule to su - user2(NO PASSWORD) and user2 has will be able to sudo certain commands so following … | |
I need help parsing this bit of text into the output shown below: Text: dump database abc123 to 'compress::0::/dbdumps/abc123_20100930_1251:00.dump1' stripe on 'compress::0::/dbdumps/abc123_20100930_1251:00.dump2' go dump database abc_def to 'compress::0::/dbdumps/abc_def_20100930_1251:00.dump1' go Here abc123 and abc_def are database names Dump files for database abc123 will be created in 2 stripes and will be … | |
I want to list all log files from log directory of previuos month. suppose currnt month is december, i want to list all log siles of november. if its april, it should list all files of march. Please suggets. | |
Hi, I'm trying to write a shell script to show me the number of Readable, Writable and executable files in a directory. I have no idea how I can do that. Any help??? Thank you. ![]() | |
Hello friends, I am writing a program that behaves like a (Linux)shell (but it's not really a shell because it does not interpret commands itself). It will read some commands like in Linux shell and then run the command in the same window of course. The standard MSDOS shell does … | |
Dear all, What is wrong with my if condition, it never enters the if: [CODE] #!/bin/bash echo "Enter integers, enter -1 to stop." declare -a FOO for((i=0;;i++)); do read FOO[i] if [ "[$FOO[i]" == -1] ]; then #Never enters here echo "inside" break fi done foonum=${#FOO} for ((i=0;i<$foonum;i++)); do echo … | |
Hi All, I'm looking for some expert help on sed/script to work out the best way to transform one xml format into another however there are a few complexities around translation. The extra complexities are to: 1) take the start and stop time (YYYYMMDDHHMMSS) and convert to start time to … | |
Hi, is it possible to write a shell script to browse database driven website,browse throu records and fill in some forms? all in an non-interactive mode? idealy i should be able to bring some info back from the website and store them on a local file so i know im … | |
Hi, I have used Dump Command to dump the application files. For Full backup the level 0 is working file. For incremental backup I used the level 1 or 2 it is getting the error as DUMP: Only level 0 dumps are allowed on a subdirectory DUMP: The ENTIRE dump … | |
I have created a script file to dump the application files using the following script Code ============= #!/bin/bash #Full Day Backup Script #application folders backup now=$(date +"%d-%m-%Y") #use 1 instead of 0 which is incremental backup dump -0f $now /var/www/html/* ============= using this we can sucessfully dumped the application files. … | |
Hi All, This is Vasu.I am new to this software field.Now I started learning Unix n Oracle. Daily we are doing the following job manually.But I am planning to automate it.So any one please help me to write a script for the following requirement.It's very helpful to learn new things. … | |
Hello, I'm following this script [url]http://evolt.org/PHP-Login-System-with-Admin-Features?from=2450&comments_per_page=50[/url] and it uses username to sign up. I was wondering if anyone can help me out in figuring out what to change in order for the user to input the username to email sign in. I know how to change the main.php where you … | |
hi every one that reads this, i have a problem that needs an answer and was wondering if any one can help me with iam looking for a group of people that are willing to put some free time in ( if they can ) i have an idea. and … | |
![]() | Dear Folks, Using bash on Linux, how would I list file sizes to 3 significant figures in human-friendly form? If I try [CODE]ls -lh[/CODE] I get 2 significant figures, but I would like to get 3 significant figures. Also, there is the almighty muddle between megabytes and mebibytes that leads … |
Process Beginning - 08-26-2010-23.41.47 DB2 CONNECTION SUCCESSFUL! Ready to process and load file: FILENAME # of rows in the TABLENAME table before inserts was 8364 FILENAME - RECORDS READ COUNT: 4838 FILENAME - INSERTED ROW COUNT: 129 FILENAME - ERROR RECORDS COUNT: 0 # of rows in the audit.ELIG_RESP_AUDIT table … | |
i have problems regarding linux shell script. i want to do shell scripting using c programming. my real issues are how to do the i/o redirections using pipe. for example: ls < new.txt how can i write the code for my shell to execute that command. so far i am … | |
Hi I need to change the FROM: address from [email]xyz@server.com[/email] to something like [email]abc@website.com[/email]. I need to do this without changing the .muttrc file any ideas? | |
i am trying to write a bat script to ping a machine if it is up. i am trying to do something like this [code] if "ping xxxMachine | findstr reply" echo "xxxMachine is up" else echo "xxxMachine is down" [/code] the syntax is definitely wrong, does anyone know if … | |
Hello! I have i problem i was hoping you could help me with, I have to write a script that will ask the user for a username and password, and validate it through /etc/passwd and /etc/shadow. I've looked all over the place for an answer to this and i just … | |
Hi Experts, I need to have a shell script to compare two directories and if new file is created in Dir1 it should be copied to Dir2. can some one help me, i am not aware of scripting Thanks & Regards Suresh | |
Hello, I need to write a shell script that performs encryption and decryption using AES algorithm. I could not find any resource online, can anyone please help me in the right direction? Thank you for the help! | |
hi i am harsha and i want a linux shellscript for connecting a mysql database and queries to copy a blob file from database and i need to parse that file and replace with other file can u pls help me its urgent | |
Hi, I am trying to delete all files that end in .csv within a directory. I'm not sure how to go about this, I am using bash and the command I used was; [CODE]rm '/home/eeng/ME_project/Big_Users/*.csv'[/CODE] New to this scripting so not too sure where i'm going wrong. Any ideas? Thanks. … | |
Hi, I have requirement on shell scripting. I require scripts for the following 1) Full backup(application and DB) 2) incremental back up of files 3) restoring of files Please help me in providing the scripts. Thanks in advance |
The End.