Programming :: Joining Command In Csh?
Feb 3, 2009
I did a search for this but did not see anything relevant.I'm trying to join several strings and execute them as a command but csh does not seem to recognize it as a command, anyone know what I'm doing wrong? numone and numtwo will be passed into the script. (I have to use csh because it is a part of an existing script.)
Code:
#!/bin/csh
set file1=file.dat
[code]...
View 5 Replies
ADVERTISEMENT
Oct 21, 2010
I'm looking for a solution for the following simple problem. I have two files, fileA and fileB. Each file contains only one word per line, and they contain exactly the same number of lines. I would like to create a new file called fileAB, where the i-th line contains the i-th line of fileA, a Tab separator character, and then the i-th line of fileB. I know how to do it in Python or other scripting languages, but it would be nice to have a bash one-liner for that. Is it possible to do this in bash or any other Unix shell, using the tools that are usually available on the command line (e.g., sed, awk and such)?
View 1 Replies
View Related
Apr 9, 2009
I don't have any background in networking. Could someone tell me what are the possible options and the best solution to join two networks together?Let's say network A has the IP address of 192.168.1.0/24 and network B has the IP address of 10.0.0.0/24. Should each end of the network has a gateway server? Or should I just setup one enough? Or do we have alternate options?
View 1 Replies
View Related
Jun 18, 2010
Code: cmd='date | wc'
$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?
View 4 Replies
View Related
Oct 27, 2010
So here's what I'm after:
Create Ubuntu inside Virtualbox (done) Join it to the domain using net ads join -S example.com -u admin (done) Update the DNS using net ads dns register (done) Be able to visit the netbios name as defined in smb.conf (lets call it Bob). [Not done]
The problem I am having is that it looks like, even though the machine is now on the AD, and I can browse users in the AD, etc... My network configuration (IP/route tables, etc) are not correct.
For example, my AD server is in the 172 IP range, while BOB is sitting at 10.0.2.15.
The DNS server stores Bob's value as 10.0.2.15, so when I ping it from my workstation at 172, I end up getting no response (obviously it's on a different net).
Bob's route table is configured to deal with 10... range of IP, rather than 172.
I have attempted doing commands such as ifconfig eht0 172.16.1.118 netmask 255.255.255.0 and even editing the route tables, but that then makes outbound network traffic imposable.
View 1 Replies
View Related
Dec 14, 2009
How can i make my device join a multicast IP group.My target device is in linux
View 2 Replies
View Related
Jan 20, 2011
I have a file of size 6GB. I would like to find an utility which will split and join in both windows and in Linux. I know Linux has native split and cat for this purpose. My idea is, if I give this split files to anyone, they should be able to join them either in Windows or Linux. Is there any utility to do this job?
View 7 Replies
View Related
Dec 28, 2010
I usually use the following command to join several PDF files in one :gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=output.pdf input1.pdf input2.pdfHadn't have to do it for a while but today, I needed it and thus fired my script.lam! gs segfaults.A quick internet search and I found this :https://bugs.archlinux.org/task/22006Though Arch related, while I'm running slackware64-current, the behaviour was exactly the same as mine.In the above thread, one guy linked to a bug report which seems to be theculprit :http://bugs.ghostscript.com/show_bug.cgi?id=691831gcc 4.5.1, gs 9.00, x86_64, indeed, slackware64 seems to be exactly in that situation.
View 2 Replies
View Related
Feb 16, 2010
I am trying to learn how to pass more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....
However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
View 4 Replies
View Related
Apr 13, 2010
I am writing a perl script which uses the matlab compiler to compile a .m file.
I am using the system("mcc �m file.m"). I have matlab installed and both script and exe are in the same drive.But i get the following error .
'mcc' is not a recognised as an internal or external command ,operable in program or batch file.
View 5 Replies
View Related
Oct 20, 2010
I am using gtk to program GUI. How can I show the output of shell command into a textbox, ex ps -efc command ?
View 3 Replies
View Related
Apr 22, 2010
I want to join a Windows domain with my ubuntu (for project of evening school)I'm following this guide http://ict-freak.nl/2008/10/26/how-t...indows-domain/ but when I put in the command I get this error
project@ubuntu:~$ sudo domainjoin-cli join project2010.be Administrator
Code:
Error: Unable to resolve DC name [code 0x00080026]Resolving 'project2010.be' failed. Check that the domain name is correctly entered. Also check that your DNS server is reachable, and that your system.is configured to use DNS in nsswitch.Probably need to Change the nsswitch file.it looks like this atm
Code:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.[code].....
View 5 Replies
View Related
Aug 30, 2010
I need a piece of software that could join .rmvb files together as one file , i have tried Avidemux and Lives , but none of them worked
View 5 Replies
View Related
Jul 27, 2011
How to join about 8 avi files the filenames are in the format "blah.avi.001", blah.avi.002, blah.avi,003 blah.avi.004 etc. I want them joined so there is just one avi file. How can I do this?
View 9 Replies
View Related
Jun 30, 2011
I have created a linux vm on hyper-v and would like to put it on our network domain. The Hyper-V software is running on windows server 2008. I would appreciate it if you could please give me a step-by-step guide on how to make this possible or a reference where i can get information on how to do this.
View 1 Replies
View Related
Apr 15, 2011
attending class in the Redhat Academy Website. I was wondering how can you join the two commands of cd/usr & ls successfully in the .bashrc file?
View 10 Replies
View Related
Jun 19, 2010
I have a very nice SUSE 11.2 Samba PDC that runs well with Windows XP clients. I am using NETBIOS for name resolution since I dont want to put in a DNS server because my router already has one, Im pretty sure it would make things more complicated. I enabled wins support in smb.conf and made the name resolve order with lmhosts first. lmhosts lists all the ip adresses with their computer names in capitals. I hope thats right. I set up my windows 7 with the reg file from the samba wiki on windows 7 [URL].
That's great now I get the old screen from XP in windows 7 when joining the domain. I gave the machine netbios name MAINPC a smb trust account MAINPC and added the unix user MAINPC$ that should all work. I manage to successfully join it says welcome to domain, afterwards an error appears "changing the dns name of this computer to "" failed" and something bout not finding the domain controller. although I joined. then I resatart and when I try to log on it says "trust relationship failed". How to make it join and logon properly.
View 2 Replies
View Related
Jan 13, 2010
I have 6 RHEL 5 Servers, 1 5.2 32-bit Master Login Server, which services the other 5 RHEL 5.3 64-bit App Servers, for Login and Authentication. I am wanting to intigrate these with my Windows AD. I use Windows Server 2003 R2 Standard. I currently have the RHEL servers setup to have the 32-bit (5.2) server as the NIS Master, serving NIS out to the remaining 64-bit(5.3) servers.
I also have a Windows Server 2003 R2 Domain Controller serviceing my Windows AD. I would like to be able to ingrate them to be able to use Password Sync and Single Sign-on. I am not real worried about having Kerberos or LDAP running, because the systems are NOT physically connected to any external source. (The network is completely self-contained). I am just wanting to be able to use Password-Sync and DNS between the different networks.
My questions are as follows:
1) Would it be better/easier to make the Windows Server the NIS Master or the RHEL 5.2 Server?
2) If I make the Windows Server the NIS Master, how would that effect the remaing servers who get their NIS info from the Redhat Master?
3) If I keep the RHEL Master as NIS Master, how would I intigrate that with AD and have both shared Passwords and DNS?
View 1 Replies
View Related
Oct 15, 2010
I'm trying to convert this awk command from command line into an awk script, but just cannot get it to work:
This is what i have after my BEGIN
Am i missing something here? this just prints out the count for everyline, not counting lines on 5th field that match 'A'
View 1 Replies
View Related
Nov 19, 2008
suppose i store the history number of a command say :
1004 cat file
Then now i want to run it like : !1004 but by using a variable.
command=1004
!$command
i am getting errors like :
command=1004command
View 2 Replies
View Related
Oct 24, 2010
I have a bunch of MP3 files and I have their paths grouped in a text file. Is it possible to join the relevant MP3 files based on the paths in the text file losslessly?
View 2 Replies
View Related
Nov 1, 2010
I have successfully deploy/configured the Ubuntu PDC and connected Windows XP too. Its all working fine.. but now I wana to connnect Ubuntu Desktop to same Ubuntu PDC. I have changes in SAMBA, as per required for joining Domain and execute the <net join MyDomain -u root> to its all fine. No error. But How to Login? On startup there is nothing like option for selecting Domain or Workgroup..
View 9 Replies
View Related
Jan 23, 2011
What is the best software for splitting and joining mp3 files?
View 7 Replies
View Related
Apr 13, 2010
My interest to be able to join my windows workgroup and be able to work with the windows shares . I am running Fedora 12 in a virtual machine as guest OS. I know I have to install Samba which does not come installed in Fedora 12. Do I need to configure samba after installation if my only interest is to work on windows shares from Fedora and not the other way around? .
View 7 Replies
View Related
Apr 8, 2010
I'm trying to transfer a large .tgz file from a CentOS dedicated server to a linux webhost (unknown OS). The problem is the webhost will not allow a 1.1gb file to be uploaded, however it will allow the upload in 149MB chunks. I used the split command to segment my tgz into 7 segments under 150mb. I then uploaded all segments via FTP which worked. Then I tried to join the segments to create the original tgz. The join appears to work with no issues. However, when I try to extract the tgz it appears there is a problem, most, but not all files are extracted and there is this error message:
Code: gzip: stdin: Input/output error
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now It appears the join did not work and the tgz is slightly corrupt. What am I doing wrong? Here's the commands I'm using:
1. Create the original tgz on the dedicated server
Code: tar -czf mysite.tgz ./myfolder
2. Split the tgz into segments
Code: split -b 149m -d mysite.tgz seg
# using the -d switch so the segment files use a numerical suffix
# I now have these files:
seg00
seg01
seg02
seg03
seg04
seg05
seg06
seg07
3. Transfer segments to the other webhost using FTP
Code: # hand typing (not a script)
ftp ftp.mysite.com
myusername
mypassword
binary
cd somefolder
put seg00
put seg01
put seg02
# through to seg07
4. Join up the segments on the new webhost
Code: # this is in a .sh script file
cd /full/path/to/somefolder
cat seg* > mysite.tgz 5. Extract the new tgz
Code: # this is in a .sh script file
cd /full/path/to/somefolder
tar -xzf mysite.tgz
# the above error is now thrown.
That's it. What am I doing wrong that's causing the above error?
View 5 Replies
View Related
Mar 9, 2009
I want to join my centos 5 to my windows 2000 Active Directory domain and can not figure it out.
View 1 Replies
View Related
Oct 30, 2010
I am trying to join about 3 video file and have an audio track over the top. Nothing major and to give you an idea how basic it needs to be, I used windows movie maker in the past. I can't figure out how to do it! I had a flick through the web and some people recommended Avidmux. I installed it and i can edit one video file with no audio but if i try to incorporate a second file it just opens a new window! Has anyone got any ideas on good video editing software.
View 3 Replies
View Related
Jun 12, 2011
How to compare two wav files [URL] or to be capable to reco simple voice commands? Openbox, fluxbox... can be ran using perlbox voice reco for basic commands. [URL] everything is frequence based:[URL] However we would like to make the use of the ALSA and processing after recording. OK.
Code:
apt-get install -f sphinx2
here is my script:
Code:
#!/bin/sh
# my alsa-1 is my usb mic
arecord -Dplughw:1,0 -f cd -vv voicecommand.wav
[code]....
THe next step is to analysis the wav file just created. The advantage is that sphinx2 works for basic commands + it uses only up to 3% of your CPU resources !
View 3 Replies
View Related
Oct 29, 2010
I have an OpenSuSe Server configured with DNS, Samba (PDC + WINS), LDAP, Squid All this is in a hybrid scenario with other OpenSuse acting as clients and some Windows 7 also as clients. Everything works perfect. Both systems are able to join and authenticate in the Samba server very smoothly.
My problem is that in my workspace I have several different subnets/VLANS. So I have another OpenSuSe client here that needs to join the domain and authenticate with the samba server, but he just cant find it via the Windows Domain Membership setup screen (where I usually configure the others).
The server can pe pinged, and it does resolv local domain names. It seems the problem is that I have no place to configure a PDC/WINS server in Linux Client. It only asks me for the domain to join, and then it doesnt find it (Im guessing this happens because it cant receive the broadcasts from the server network).
Is there any way to declare the Samba/PDC/WINS server on the client side?
View 10 Replies
View Related
Mar 9, 2011
I am trying to grep multiple numbers from file, grep does have the -f option for that.
Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with
Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?
View 2 Replies
View Related