1,978 Topics

Member Avatar for
Member Avatar for tgreer

I think I've posted on this before, but I find the overall site categorization non-intuitive. "Software Development" vs. "Web Development" doesn't make sense to me. Web development IS software development. I propose the site be organized by software development languages and platforms. DHTML/AJAX includes working with XML/XSLT, so where do …

Member Avatar for tgreer
0
237
Member Avatar for braintwister17

Hi Everyone , I am currently learning shell scripting.So I just need little help from you. If you know sites which have good shell programs / questions for practice (solving ) .. please post them here. If you can provide any alternative regarding my study on shell scripting that would …

Member Avatar for IIM
0
146
Member Avatar for stroganoff23

Hi , how can I use the at command to find me in a specific point of time upon logging in? which it will display on screen a txt file at the same time. Thanks in advance

Member Avatar for IIM
0
100
Member Avatar for emanfman

Well, well. I was looking for a program online. And so, it appeared as a [ICODE].bat[/ICODE] file. However, It looked suspiciously small at 53 kB. So, before I ran it, I opened it up in notepad and voila, a virus. So, I shredded the file with the windows 7 shredder, …

Member Avatar for sknake
0
144
Member Avatar for Code12345

NOTE TO MODS: I wasn't sure in which category my question would fit in so if i have posted in a wrong section plz move it in the right section.Thanks Ok guyz here is the problem. I have a router which is accessed from the browser. I also have to …

Member Avatar for jingda
0
259
Member Avatar for SakuraPink

Hi everyone, I have a text file which looks like this: [CODE] ( 3,3,0 ) 0.9984104 0.000503 ( 3,3,1 ) 1.000613 0.000484 ( 3,3,2 ) 1.001192 0.000571 ( 3,3,3 ) 1.002418 0.00063 ( 3,3,4 ) 1.003345 0.000583 ( 3,3,5 ) 1.000215 0.000512 ( 3,3,6 ) 1.000911 0.000537 ( 3,3,7 ) …

Member Avatar for Aia
0
319
Member Avatar for SakuraPink

Hi there, Here is the problem: I have a Text file with several hundreds of lines and I want to store line 100 to 200 in another text file. I wrote the following piece of code but result is all of the lines not just the ones that I need. …

Member Avatar for SakuraPink
0
246
Member Avatar for _neo_

Hi all. I need to highlight comments on mcedit. 1) comments start with "--" 2) comments may may end with "\n" or with "--" how to do it in mcedit syntax file? These lines are my syntax file content which responsible to highlight comments context -- \n brown # here …

Member Avatar for _neo_
0
263
Member Avatar for manish250

hello all i have a jap project.in which i have a lot of log(txt) files.what i want to do is searching a particular number in all log files and cut some fields of lines containing that number and show them as table in jsp page. currently i am using shell …

Member Avatar for kingman123
0
89
Member Avatar for sjgriffiths

Hello I want to sort a file and then uniq it, but ignoring the first field so i have REF | FOR | SUR TLT090991|STEPHEN|GRIFFITHS TLT090992|STEPHEN|GRIFFITHS So i want to uniq but ignore the REF field I had this but it doesnt work cat $FILE | sort -t '|' -k2,3 …

Member Avatar for JeoSaurus
0
303
Member Avatar for _neo_

Is there a way to get current date and time from remote windows machine on linux? On remote windows machine ssh not enabled, there are no powershell. Can we achieve result via telnet or smbclient?

Member Avatar for _neo_
0
2K
Member Avatar for vasuv

Hi All, We are using one application. This application is having 2types of jobs. Under each job again there are each 5 sub jobs. All the jobs are scheduled jobs. Now the requirement is The main 2 jobs we are going to run on some specified days( for this we …

Member Avatar for IIM
0
157
Member Avatar for divineelite

I am using ShellExecute(NULL,"open","control.exe","ncpa.cpl","c:\\windows\\system32\\",SW_NORMAL); to open the Network Connections window. That is working on my system which has Windows XP on it. But when I make a build for the machine on which this program has to run it doesn't work. It has Windows Embedded on it. I guess it's …

Member Avatar for gerbil
0
198
Member Avatar for Shruti4444

Trying to code a shell script for a program testing. i need to check for the existence of particular word in outfile and then proceed further, which i am not able to do. I have wrote the following code. Please tell the corrections.. The control does not pass to the …

Member Avatar for IIM
1
134
Member Avatar for happy8899

[CODE] set a = 3 set type = a echo $($type) [/CODE] How for me to get value of 3 from variable $type which is a. I can't get value 3 from what i do above? please help thanks!

Member Avatar for IIM
0
161
Member Avatar for Beat_Slayer

Well, it bothers me to build menus for every shell application that needs one. So, I've written a module to handle that, like in the good old turbo pascal times. :) Here it is, the module comments are pretty explainatory, I think, and the sample usage if run as script …

Member Avatar for Beat_Slayer
0
3K
Member Avatar for anjoz

I need to make a recycle bin code using bash my problem is that i dont know how to get the previous path of the files that ive deleted so when i restore it it will go to the directory that it was deleted from ive tried putting the paths …

Member Avatar for JeoSaurus
0
364
Member Avatar for landog

How do I test whether the first character in an array is a particular character? [CODE] i=0 while [ $i -lt $# ]; do strng=${args[i]}; if [ $strng[0] == '-' ] echo ${array[i]} let i=i+1 done [/CODE] Better yet - can I test the first character in an array of …

Member Avatar for landog
0
98
Member Avatar for anjoz

how do you compare comandline arguments in bash example i have 5 or more arguments and 2 of the arguments are the same how can do it any suggestions? my problem is that i need to compare 2 or more arguments if any of the arguments are the same sleep …

Member Avatar for thekashyap
0
137
Member Avatar for kristo5747

After running the command [CODE] find . -name "R*VER" -mtime +1 -exec sh -c 'grep -H ^err "{}" || echo "{}:No error"' \;[/CODE] my files look like this [CODE] RRR1~COS~COSMETICS~40048~jgmdtv113~1~P~R22-200~029053662549~20110607~102151.VER No error RRR1~COS~COSMETICS~ETT03~jgm14652.~3~F~R16-500~000907009757~20110607~085109.VER err 3922 [/CODE] Using the tilde (~) symbol as delimiter in the file name, can I extract …

Member Avatar for kristo5747
0
222
Member Avatar for Shreerang

Hey all, I have written a small script to download certain files from an ftp site. I use the wget function.I'd like to get a progress-bar with zenity to show the advancement of the wget function. Can anyone suggest a solution? Thanx, Shreerang Patwardhan.

Member Avatar for Kiwicam
1
958
Member Avatar for n3red

Hello, First of all let me say i have very little idea about shell scripting and linux ( ubuntu ). I am trying to write a script where i would give it two arguments two dates in a 29/5 30/5 whitin the console and it would return a list or …

Member Avatar for andrewll2
0
88
Member Avatar for vaibhav1983

Hi All, Small issue while I am tring to cat the contents of the file . The script is posted here [CODE] myvar=`cat orders.0613` echo $myvar [/CODE] The contents of the file orders.0613 contains approximately 200 lines. but when I do echo $myvar the contents are printed in one line. …

Member Avatar for thekashyap
0
96
Member Avatar for k2k

this is perfectly fine. It will grep each of the output, if it != "client" or "-----" then it will be written to the text file. for /F "tokens=3" %%a in ('E:\things\bpplclients') do ( if /I not "%%a" == "Client" ( if /I not "%%a" == "--------------" ( echo %%a …

0
94
Member Avatar for airbourne

I am writing a simple shell script to automate a simple backup of a website and it's database. This is the working code: [CODE]#!/bin/bash # creates a backup of the mysql & webdata for a specific website. TODAY=`date +%A` # these variables cannot contain any spaces and must be modified …

Member Avatar for L7Sqr
0
722
Member Avatar for red_ruewei

Hi all, Sorry if I post duplicate thread. I'm using windows batch program and still very beginner. I'm having a problem to read record from database. I'm planning to automated read folder name(folder name as reference number of project) from specific root folder and compare the folder name whether exist …

0
89
Member Avatar for Freude

Hello everyone, I am trying to use gnuplot for visualization of data stored in a file which is dynamically changed during computations. My aim is visualization of data from this file every several seconds during computations. How can I refresh gnuplot output produced in the bash script (usually i call …

Member Avatar for Freude
0
123
Member Avatar for santhoshvkumar

Hi all, I am trying a scenario for calling a shell script when ever a trigger is called. Can some one guide me how to achive this scenario. Also it should passes the value from the table to the shell script. Can some one explain me along with the example. …

Member Avatar for JeoSaurus
0
88
Member Avatar for munitjsr2

I have been looking for this for very long but still can't figure it out. I want a script to login to website without even typing the username and password while logging in.Its very annoying when you have to type the passwords to to login to multiple sites each time …

Member Avatar for munitjsr2
0
289
Member Avatar for prathu1

help me to understand the below highlighted: [B][COLOR="Red"]When the login program executes a shell, that [U]shell is uninitialized[/U]. When a shell is uninitialized, important parameters required by the shell to function correctly are not defined.[/COLOR][/B]The shell undergoes a phase called initialization to set up these parameters. This is usually a …

Member Avatar for thekashyap
0
256
Member Avatar for vasuv

Hi, we are having some scheduled jobs.If these jobs runs successfully the files will be arrived into the some specified folder.But some times I am unable to find out the files are not yet arrived. So now i want to write an automation script which will inform you like the …

Member Avatar for griswolf
0
101
Member Avatar for moone009

I believe this should be a very simple task for anyone good at batch scripting. Basically I need a batch script that will run through a directory and produce a text file for me. Directory: D:\SQLBackup If any folder in this directory has more than 145 records I need to …

Member Avatar for moone009
0
86
Member Avatar for vasuv

Hi All, I want to write an automation script, which will send log files of Scheduled jobs via email for every one hour. Please help me out to write a script for this. Thanks.

Member Avatar for thekashyap
0
150
Member Avatar for buster2209

How can I view the TCP/IPv4 setting through the command line for an adaptor that is [I][COLOR="Red"]disabled[/COLOR][/I]. 'ipconfig', 'ipconfig /all', and 'netsh interface ipv4 show addresses' only display the relevant information for an adaptor that is enabled. Thanks in advance!

Member Avatar for rch1231
0
119
Member Avatar for endisbegun

so im just starting to get into the basics of bash scripting yes this is for a class, no i dont want the answer, i want to understand im a networking major, and as such not really big into programming basically i need to make a simple calculator that handles …

Member Avatar for endisbegun
0
72
Member Avatar for SakuraPink

Hi everyone, Here is my problem: I have different data files each with several columns and row of data. datafile1 , datafile2, ... Now I need to do some simple math procedure of this data files, Lets say I need to add the 3rd column of datafile1 to the 2nd …

Member Avatar for Fest3er
0
136
Member Avatar for Labdabeta

I have the following working fine from the command line: [CODE] telnet (my email smtp) 25 helo mail from:(my email address) rcpt to:(my email address) DATA SUBJECT:(my subject) (my message) . [/CODE] This is sending me an email. My problem is that I need to emulate all of this from …

Member Avatar for Labdabeta
0
176
Member Avatar for n3red

Hi, i am still learning i want to make a simple shell script. I wish to make a function that will receive 2 arguments (two dates) and will return all users who logged in during that period, how many times and how long were they logged in. I wish to …

Member Avatar for griswolf
0
364
Member Avatar for egmik3

I am a noob at shell scripting and have been reading up on this topic in random google searches. The only way that I saw that worked was creating a tmpfile. IE: [CODE] crontab -l > $tmpfile edit $tmpfile crontab $tmpfile rm $tmpfile [/CODE] I need a script that will …

Member Avatar for gunasek12
0
7K
Member Avatar for narlapavan

i am working on solaris environment. i want find size of a file on remote system.. i.e at present i am in user1 system, from user1, i want to find size of a file in user2 system ...

Member Avatar for thekashyap
0
66
Member Avatar for tikoti

Hi all, I am really new in bash scripting and I can't even make simple tasks What I am trying to do is executing a command (ls -l for this example), over a double leap ssh. [CODE] #!/bin/bash ssh -T myuser@entrypoint ssh -T myuser@targetpc<<EOI ls -ltr . exit EOI [/CODE] …

Member Avatar for thekashyap
0
251
Member Avatar for arunmag

Hi friends, I just wrote a small batch file that open an application. When it opens that it displays a window with four buttons and by default the cursor in on the firs button. Now I want to click on the second button that browses for the files to open. …

Member Avatar for Batch Devil
0
246
Member Avatar for empyrean

Helo all, I wanted to parse EMBL format like file to fasta. i cannot use bioperl because this is not complete EMBL format. so please suggest me how to get this done.. [CODE] ID 013789-0068 PS TBD OO huringiensis OS ringiensis OX SI 68 RA RL 2010. OKAYAMA UNIVERSITY,JAPAN LAMB …

Member Avatar for thekashyap
0
296
Member Avatar for LanguidLegend

The following is an exercise for my class: [INDENT][COLOR="Green"]Redirect mouse device into a file. sudo cat /dev/input/mice > rawmouse.data Move the mouse a bit and then type CONTROL-C. Note that on some distro's you'll need to sudo to bypass device files' restricted permissions. Now, cat that file to the sound …

Member Avatar for LanguidLegend
0
239
Member Avatar for ajwest85

Im using awk script programming in the END state if i set the for loop i in name it would print out the values of the name array but not the sales array, If i set the for loop i in sales it would print out the values in the …

Member Avatar for thekashyap
0
150
Member Avatar for keeda

Hi, I have a bash script that reads data from a data file and does some processing, due to security reasons, I have to encrypt my data file, how can my bash script handle this? I mean how can my bash script read data from a encrypted file without me …

Member Avatar for thekashyap
0
115
Member Avatar for rkumra

while firing a build through clearmake command i found such message. is the build successful or any error is there?? how to come out from this?? BUILD SUCCESSFUL Total time: 15 minutes 23 seconds *** Error code 1

Member Avatar for thekashyap
0
70
Member Avatar for weblover

Hello everyone i have a text file that contains something like this. [CODE] 1 AC AT RR cOO 2 EE cFF HGB cEVY 3 WDU RWS cTY NBE [/CODE] but it contains a lot of rows and that's an example of the data what i want to do is to …

Member Avatar for weblover
0
139
Member Avatar for vedro-compota

Hi guys! In my makefile I have line - [CODE]gcc -Wall parent.c errmsg.o -o parent[/CODE] What does it mean "Wall" here ? big thanks in advance)

Member Avatar for vedro-compota
0
109
Member Avatar for shroomiin

Hello everybody. I am attempting to write a simple script using a for loop that counts the number of directories, the number of simple files. and the number of symbolic links in the current directory, and then prints this information. The output should look something like... directories: 12 files: 20 …

Member Avatar for thekashyap
0
166

The End.