1,817 Topics
| |
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 ... | |
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] … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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) | |
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 … | |
Hi I wrote a script for class that took one specific file as an input. Ideally, it should be able to take any file as an input. How do I do that? Someone suggested using $@ since is a global variable but I'm kinda confused on how to implement it. … | |
I have a directory with a bunch of stuff in it. when you say rm -r "the directory" you have to say yes,yes,yes,......20 times. Is there a script for just having the answer to all "are you sure you want to delete ...?" be yes? any scripting help, im new. | |
im reading a character given by the user through the keyboard . now ,what is correct : if ($gramma == s) then OR if ($gramma == 's') then where s is supposed to be the character given by the user . if its not any of that whats the correct … | |
Hi.. I am a total newbie to writing scripts. I am trying to execute a program through a script, but I keep getting 'unexpected end of file' error. [ICODE] q=1.170 while [ $q -lt 1.405 ]; do ./a.out $q q = $(($q + 0.005)) done [/ICODE] Please tell me the … | |
hello i know only shell use but i dont know to program and where to program iam very interested to study about that please show me some links or books where i have to start .iam a absolute beginner please guide me | |
script to specify the name of the user to be checked, the frequency in seconds at which the script should check. If a checking frequency is not specified, it should default to 60 seconds So far I have got [CODE] frequency=$0 user=$1 #!/bin/sh while [ $* -gt 60 ] do … | |
Hi All, The command is perfectly working in a Linux machine, but getting a filecopy failed error in windows machine. copy scp://user@ipaddress/sourcefile loca:///destination I guess we have to specify the domain name also in the windows server, as the username is domain/user. Please help. Any other option other than scp. | |
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 … | |
Hello everyone. Let's say i have 2 scripts called "fill_cup.sh" and "empty_cup.sh" and i create a 3rd script "cup.sh". How can i run/execute the scripts "fill_cup.sh" and "empty_cup.sh" in the script "cup.sh". I tried with sh fill_cup.sh and ./fill_cup.sh but it doesn't work. for example Script cup.sh #!/bin/sh [CODE]echo enter … | |
Does anyone know how to use awk to print every 3rd line from the 1st line and including the 1st line? 1st .. 3rd .. .. 3rd .. .. 3rd soemthing like this? the closest I could get was below, but it dosn't go beyond the 3rd line.. any ideas? … | |
me and my team working on a project called Stealth Hunter, Summarize about our project: Stealth Hunter is a thief catcher, It will silently take a snapshot of user using a stolen notebook or pc with webcam and send the information via email. how it work is: The scripts will … | |
Hi, How good is the TCL scripting language? Is it a hot trend in market? What are the jobs prospectus after learning this language? | |
i havae got a ubuntu machine .I typed in ftp in the command and it comes as ftp> then it ask for connection .I googled it and found that i have to give an address for it. Under one forum i found that the address lies in the /etc/hosts file … | |
Hi, Can someone create a short code that will rename a files extension in a sub directory using a command line option -r? So if i have a file a.txt in folder called loc. I enter this "change -r txt doc" and the file will become a.doc in the loc … | |
Hi all, I have a file .c and I would like to format the comments of file like that : /** Comment */ with a sed script The comments in my file is /* comment 1 */ /* comment 2 */ /** comment 3 */ I know to format file … | |
I dont know shell scripting, It will be great help if someone help me in writing the script for below requirnment Requirnment: I have a file in which sql quires are written.I have to replace content of that file. sql file looks some what like below [CODE] #partial content of … | |
Hi. I'm wanting to append some information to a file, which is found in a different file. I have simplified the problem using animals. Here is the basic code to add the line to the file: [CODE]grep "some important info about rabbits" rabbits.data >> rabbits.txt[/CODE] Very simple, but this must … | |
i, Here is the scenario I'm dealing with: My company has a bunch of old servers and workstations that have data on them that I need to copy to a "drobo" (multi-storage device) and eventually send the storage unit to someone else. I have a list of "contract numbers" that … | |
Hi, I use a command with awk in bash shell so as to extract info from a file. [CODE]awk -F'[=,: ]' '{print /uid=/?$4:(/^telephoneN/)?$2:$3}' 1.txt[/CODE] the output is something like aaaa bbbb cccc dddd eeee ffff gggg tttt I would like to write this output in a file 2.xml [CODE]<xml> <name>aaaa</name> … |
The End.