1,978 Topics
![]() | |
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 … | |
Do you guys know any Linux OS that is small in size and allows Bourne(sh) shell scripting? I heard DSL and Puppy Linux is small,but I don't know what languages they use. | |
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 | |
I'd like to have a windows forms application execute a command line instruction similar in structure to the following: ProcessText file1 file2 where ProcessText is a working console tool for automated text processing, file1 is the text I need processed, and file2 is the created text output. From the command … | |
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 | |
Hi, I'm trying to write a shell script that do ftp and download file periodically, this script should be called by a daemon running in the background. the shell script "script.sh" is as follows: [icode] yafc [url]ftp://test:test@192.168.1.225:21[/url] < commands [/icode] and the "commands" files is [icode] d Root/md5* / quit … | |
Can anyone give me an example of a DOS BAT file (script) that could FTP a file (variable)? I've got the Linux problem solved, but I need to do it in a DOS environment. Thanks, John | |
hello everybody. i am attempting to use a script which returns the error: bash: ./script.sh: /bin/bsh^M: bad interpreter: No such file or directory upon "chmod"ing and executing. the code is: [CODE]#!/bin/bsh grep 'Time : ' rob_onholiday298.gout | awk '{print $4}' > temp1 grep 'Total energy ' rob_onholiday298.gout | awk '{print … | |
Hi every one, I am currently working on a server program which executes a series of system commands on receiving a messgae from the client(in C). what the server essentially does is he cd's into a particular directory and executes a shell script that calls make utility and does some … | |
Hi Friends I have two server 1. server 1 2. server 2 I want to execute a shell script in server 2 from server 1. shell script will returns few data i need to check in server 1 Please help me in this | |
Hello Guys, I am new to Shell Scrpting but I am learning quickly. My script looks as follows: #!/bin/sh su - postgres echo "Please enter the password for a2billing user and confirm it: " createuser -W -S -d -r -e a2billinguser createdb -e -O a2billinguser a2billing exit 0 With above, … | |
I'm running on a Linux machine and can't get FTP uploads working. Here's my script: HOST='ftp.name.com' USER='username' PASSWD='mypwd' FILE='f1020811' DIR='/data_dir/send' echo ************************************************************** echo * Attempting FTP * echo ************************************************************** ftp -n -u -d ftp.name.com <<END_SCRIPT quote USER $USER quote PASS $PASSWD put f1020811 END_SCRIPT I noticed using $HOST was rejected. … | |
Hi all Please help me in this problem: Suppose i have hundreds of files in one directory with different extenshions, I want to rename all filenames. [COLOR="Green"]filename[/COLOR] required filename [COLOR="Green"]XYZ[/COLOR]bla.java with [COLOR="Red"]ABC[/COLOR]bla.java [COLOR="Green"]Xyz[/COLOR]bla.java with [COLOR="Red"]Abc[/COLOR]bla.java [COLOR="Green"]xyz[/COLOR]bla.htm with [COLOR="Red"]abc[/COLOR]bla.htm please tell me about shell script for this. regards Abid | |
I am using ext4 filesytem on fedora 13 and also Windows 7. Tried linux internal reader, ext2fsd and many more to fetch data from ext4 partition but unable to do so. Can any one help to access data in Linux partition from Windows 7. Thank You | |
Hi there, I have a script in my intranet to which I have 100% rights to run through browser using exec(); passthru(); system(); etc with php. Now we use this to make automated backups per user database of certain systems connected. Very simple for the end-user after done working and … | |
Please let em know if this is valid....... I am trying to run mysql from my shell script by passign a parameter.the sql(script.sql) is in directory $mydir and the parameter is $date and trying to run it this way: un="username" pd="PASSWORD " dbname="dbname" result = `mysql($un,$pd,$dbname,$mydir,"script.sql",$date)` I am trying to … | |
Hi, I want to create a program that will synchronise a folder on my laptop(running OS X) and a folder on a remote server(running Linux). For example, the program is contained in a subfolder on my laptop, when I run it, it ssh's to the remote folder and loops through … | |
Need help with following date conversion: I have my dates as 08/02/2010 and I want to convert into 8/2/2010, incase date is 18/12/2010 I want to be same way. Please guide me. | |
Dear all I would like to read the input from user #!/bin/csh echo "Please enter a number:" set cutoff = $< # C shell input from stdin cluster_struc validate_rmsd.disp $cutoff 4 | cat > file1.out cluster_struc validate_rmsd.disp $cutoff 4 | wc > file2.out then read the number of line of … |
The End.