1,891 Topics
![]() | |
Hello again dear Daniwebians, I am asking for some ehlp again. I wrote a littel cript as part of my assigment. My script does what it is suppose to do, but when I run it, it does not end on its own, I have to stop it by "killing" the … | |
Hi All, I need your valuable suggestion as how to sort the log files based on timestamp. Below is the sample log content. string May 28 22:07:48 2015 Log data string May 28 22:07:48 2015 Log data string May 28 22:07:48 2015 Log data I would like to sort based … | |
Team, Presently i have some 20 files which i need to copy and store in the common directory. below is the example: script name: dir.sh cp /tmp/abc /home/abc/xyz cp /tmp/def /home/abc/xyz cp /tmp/hij /home/abc/xyz The above script is run, it copies the source files on the destination directory(xyz), wanted to … | |
I have a question is there any possibility for maken a script that you can see if computers are on in your network when you run the script for ex. ./ping.sh 54 62 62 , a script when you give as argument the last digit of the ip adres of … | |
Writing a PSUnit test case where I need to get a specific value from a single row in the data table that was generated from my separate powershell function. To do this I figured I could use a foreach loop, but I am not sure how to write the inner … | |
Write a script which accepts some number of arguments and outputs those arguments sorted into alphanumerical order, with each argument on its own line. im usin linus | |
Hi guys , i have found command to extract the output of a command and save it in a file. But I want whenever I extract the data from a command , it should start from a particular line ? I am using this command below to extract data of … | |
I want to write a shell script which finds main() in the given folder files and sub folder files | |
We have QA automation jobs that invoke user interface tests in Firefox running on a virtual Linux host. My tests perform regression, but I'm held up because of the Firefox This Connection is Untrusted warning. My current requirement is to ignore this connection untrusted warning, which comes up when accessing … | |
Hi....below is my .csh file. In this foreach n, i have runned my algorithm 10 times. But now i want it to run(iterate) 1000 times. i.e. foreach seed(1 2 3 4 5 6 7 8 9 10 11 12......1000). I tried using awk'BEGIN{for(....);}'.But still its not working...please help. foreach n( … | |
write a Bash script file that implement the RSA algorithm. The user has to enter on the command line some parameters and options, which will determine the behaviors of the script. The syntax of the shell command is $ your-shell-file-name –p<file> –q<file> –e|-d [-i <filename>] [-o <filename>] OR $ your-shell-file-name … | |
Hi all, Excuse me if i am posting this question in a wrong forum. I have YTD video downloader in my pc. But it doesn't have a download complete message box. Instead, it will display the download status in it's own listview. But if YTD is minimized, then we never … | |
Is it possible to run to run photorec such a way not to recover all photos on a drive just those with specific EXIF data? If photorec cannot solve this request itself, is it possible to do this with a script which can filter the results online? | |
Hello, I have written the basic shell script "myscript.sh", which prints Hello World. I want to call this script using PL/SQL. Please let me know the procedure(steps) for the same. Thank you. | |
Hello everybody. How can i get "ls" from shell scripting? I tried this but it doesn't work, i saved it in a file: #!/bin/bash $ls I know the second line is not correct, so what should i type? Getting "ls" is just an example, i infact want to import this … | |
i have created my plsql script but i need to run it with shell script but i can get to it please help | |
Grabs the location and name of the script file itself. | |
Hi everybody. I'm using python to create sql database. I created a test.db file and then made a table on it with the name "fims" and inserted some data on it.... title text, year text and director text. And then set values for them. Now when i type "sqlite3 test.db" … | |
Is it possible to make a bot that would be able to go to a website and vote for said website multipule times? | |
Hi friends! I'm coding a program; i have a Tkinter window with a view button and i can add names with entry box and add button into a list that will be saved on a db file. Now i want the program to show the list names otomaticly when the … | |
Hey guys, I have this script that does count one year of files, 2014, but when it comes to this year, everything messes up. How could I count properly for each year in the same script ? In the attached screenshot it's obvious that I would only need 2014 - … | |
Hello Community, I'm planning on buying a new computer monitor soon but I'm not sure which one I should buy. These are the two I'm trying to decide between [LG 27MP75HM](http://www.lg.com/au/it-monitors/lg-27MP75HM) or [LG 29UM65](http://www.lg.com/au/it-monitors/lg-29UM65) thing is the 27MP75HM will be good because I can fit more code on the screen … | |
I need to write a shell script that will filter out all files/directroies in a directory that are more than two months old and then copy those files to a new target location | |
i am using vi editor but when i open file through vi and press i(insert mode),i am unable to type #,$,@...and it is displaying E348 no string under cursor.what do i do,please help me. | |
and how would it be if i would like the work with a variable and set the date of the variable 7 days back? mynewdate=(date -j -f "%d %b %Y %T" "mydatevariable 7 days ago" +"%F %H:%M:%S") see also:https://www.daniweb.com/software-development/shell-scripting/threads/50041/how-to-format-this-date-under-freebsd | |
Hi, The meaing of ^[0-9] is to exclude the characters specified in the [..], but what is the meaning of ^[0-9][0-9]*$. The expression is used to get the process information from /proc , it lists all the PIDs of all running processes with some appended text. but could not understand … | |
![]() | I'm writing a bash script that redirects the output of a command to a file. The next thing the script should do is read the contents of the file, into the tenth line of a python script. It's tricky, because the line of text in the python script should read: … |
I am working on a shell script that takes a single command line parameter, a file path (might be relative or absolute). The script should examine that file and print a single line consisting of the phrase: Windows ASCII if the files is an ASCII text file with CR/LF line … | |
I very new to C Shell. I am trying to do is read from Command line. Find the if the file is zip, .txt, symbloic link,pipe, unknow (if file is not zip, txt, sy....) here is what I what got so far. I am very stuck atm Please help me … | |
How can I use seleium test case in groovy? such as clinking on links. test case <html> ... <body> <table> <tr> <td>open</td> <td>https://url.web:8010/</td> </tr> <tr> <td>clickAndWait</td> <td>link=service=homeLink</td> </tr> <tr> <td>clickAndWait</td> <td>link=name=contentLink,service=Queue</td> </tr> <tr> <td>clickAndWait</td> <td>link=BackLink</td> </tr> ... groovy script // Setup credentials def String[] credentials = new String[2] credentials[0] = … | |
In real time applications where we use shell scripting and how it differ from other scripting languages? | |
Hi All, I'm working on a script which has a primary function to look for jpg files. I can get it to work if the folder path is just my desktop but if I try the start of the path to be C:\ it errors out. Right now the error … | |
Hello, i want to try to make a simple program that guesses the password of wifi for education purposes. And writing the guess program is the easy part but here comes the hard. this is the way you connect to wifi with cmd **C:\>netsh wlan connect name=wifiname ** But where … | |
Write a shell script, guess.sh that implements a simple number guessing game. When run, the shell script prompts the user to guess a random number between 0 and 100. If the user guesses incorrectly, the script prompts the user “Guess higher” or “Guess lower” as appropriate and allows the user … | |
I am defining the following variables inside a bash script (note: I ultimately want to pass these values to the bash script from the commandline but I haven't gotten that far yet): OFS=',' INPUTFILE='~/data.txt' OUTPUTFILE='~/delimited.txt' FIELDWIDTHS='1 10 4 2 2' Next, inside the bash script I'm attempting to call an … | |
Hello! I am normally in the PHP / Web Development section of DaniWeb. It's a pleasure to finally have a reason to check out other sections of DaniWeb! So, I am logged in as root at the Command Line Interface over SSH - on Debian 7 Wheezy running on a … | |
Hi. I have here a script which I had acquired from the net. I have tested it in a lab environment and it seems to accomplish my task perfectly. That being- to list each server in the domain, its services and the account the service runs under. Problem is- I … | |
I am trying to get two input from a file . #!/bin/bash echo "enter clientname" read clientname echo print|nsradmin -s $clientname -p390113|egrep 'NetWorker version|IP address'>> output_$clientname the content of the file would be : $ cat test_new1 NetWorker version: 7.6.3.2.Build.860; IP address: xxx.xxx.xxx.xx; I want to grab "IP address:" to … | |
How to make Ctrl-Z work with xterm -e "ping localhost" there will be a child process but how to pass the Ctrl-Z to that process? I tried Ctrl-C and S and Q they are working fine... | |
How to read oracle control file's data using a shell script? Shell script is in Unix. | |
Could someone help me with a Shell Script OR a perl script which could read the below INPUT File and print output in format listed below. The logic I am looking for is to read each block within the asterisk line, then search for "until:". If the date of "until:" … | |
Hi, I am familiar with shell script but not really have much experience. I am looking into a shell script that would do this I have 2 tables TableA id name interest ---------------------------------------- TableB id name I have to create a shell script which copies all the id,name values from … | |
Hi, I am struglling to send an image in my email. In the program I am using the shell command sendmail in usr/lib/. I had set the content type to html/text. When I am writing the html tag <img src"<someimage>"/> in the body. The mail when sent is not having … | |
What I would like to do is read each line in the atdinfile: A sample atdinfile would look like this: 651 652 653 654 655 656 657 658 659 660 661 664 665 666 667 668 I would like to grep through each atd job id looking for a match … | |
Team, Can any one assist me with my below script requirements I log into a jump box with my login and password, Here I need to create a script which i will run from this point that will connect to a different server using ssh and it should prompt me … | |
I am transfering files from system directory to server directory which works perfect. But i need to run batch file after every half n hour. I need to make it as a **batch file** please help ftp -i 21.49.567.12 username password cd "uploads" lcd "c:\up" binary mput p* disconnect bye | |
Hi Guys, I'm new to awk and trying to format an stadout "temp.txt" to csv format so I can export to excel. I'm having issues here is my code so far..If any one can help to see the light!!! The ### sign is the second server on the list each … | |
How to validate multiple inputs on a dialog form using shell scripting? Validations must be performed before submitting form or when focus shift to any other input field . | |
I am having this simple script: #!/usr/bin/expect -f set values "#host=CE101 #host=CE102" set found [regexp {[A-Z]{1,2}\d{2,3}} $values CE CE1] if {$found == 1} { puts "px is $CE" puts "vpx is $CE1" } else { puts "\nfailed to match anything from\r\n$values" } puts $found So my problem is that regexp … | |
[Click Here](null)Hello dani. I know how to write to a file using redirection. But I am unable to write a record to every new line. I want it this way alex amsterdam 800 7 But I am ending up putting everything in a new line, I mean the fields or … |
The End.