Jump to content

Apoc

Members
  • Content Count

    30
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Apoc

  • Rank
    New Here
  1. I am having the same problem to. Any time i start wine whether it be double clicking the .exe or from terminal (within an X session) my screen goes black and no amoutn of key presses will get my desktop back. the keyboard does still work as if i press ctrl + alt + backspace it turns my pc off (which i hate those key combinations doing that.. but that should be a different post). Cheers for any help / advice. PS this happened in 10.1 and now Mandriva (which i hoped would resolve this issue).
  2. All, I am writing a script which will allow people to view a wide record in Unix. basically it takes in a file of 4000 ytes long and lets you view sections of the file, 1st 100 bytes and 20 lines and then using vi like commands l goes left k goes down etc etc. All this works fine and i have a way of editing the line using awk and sed etc. what i need though is a way for a user to type in they want to edit line 60 at the current position, and then in the edit part of the terminal get the following: line 60 Pos 34-134: USERNAME textplacedhereforediting Then from this they should be able to edit that line (the USER* one ) and the terminal would then lead read capture it and allow it to be saved. (again i hope this makes sense).
  3. i have a solution but i think it is a bad way of doing this.. when i get my $variable i can do this: VALUE=`env | grep $variable | awk -F= ' { print $2 } '` I don't like calling env everytime though.. ideas?
  4. hello, I have a little problem. I have a file which looks like this: NAMEA 12 NAMEB 53 NAMEC 10 NAMED 8 I process this using a little sed and awk to produce: export NAMEA=12 which is run in the script using ` (aka funny quotes) This sets up my variables nicely, now in the script i don't know what each od the variables will be called so i do a little for loop and reprocess the file i.e.: for variable $(cat file | awk ' { print $1 } ') do echo ${variable} echo $`echo ${variable}` done What i would like to do is the second line, i want to be able to set up a variable: NAMEA=12 then loop through and echo NAMEA without knowing what it is called if that makes sense.
  5. a long time ago i had something similar to this. Whenever i altered the permissions of /home/user from the default to one i preferred (even as root) they reverted back overnight. Seems there is a cron job / system job which runs at set time or boot, and checks the system and alters all these kind of things to "protect" the system. I am wondering if yours is a similar problem and if this helps someone come up with the solution for you.
  6. Sorry for the delay in replying. The device does add MP3 natively and everything else it converts to ATRAC. I do believe it does something with the MP3's though like adding some form of DRM (mg something) hence if i just transfer an mp3 it won't just play. I did have a look at winehq and SS was mentioned on there but it fails on the install apprently, having said that, that was for 2.2 and i have 3 so i may have a tray again.. Thanks.
  7. I have the above device and i am able to mount it and transfer files to and from it like any other removeable device. However to get the thing to play music i have to use Sonic Stage, which is not Linux compatible pah. The solution i have is not very elegant, i have to use my laptop to do this. i can't use Wine (installer doesn't work apparently) and Vmware probably would work but i don't want to pay. Is there anything along the lines of GTKPOD but for this Sony device. It seems to do something very similar to the ipod (DB and renames the mp3 files). I have a feeling this won't be possible as i think Sony add a DRM or other copy protection so i can't take the device to a mates and let them have the music on the drive.
  8. They both seemed to work but i have used the above example so others in my department can see whats happening. Thanks.
  9. all, i ahve the following command: for archivefile in $(find ${LOGDIR} -type f -mtime +5 -name "WH*" ) do echo $archivefile done This lists all files beginning with WH and older than 5 days. This works fine. Now i have created a similar script: for archivefile in $(find ${LOGDIR} -type f -mtime +5 -name "WH*" -o -name "D*" -o -name "0*") do echo $archivefile done this does not work it will list all the files WH older than 5 days but will list all files beginning with D and 0 regardless of how old they are.. what am i doing wrong? do i need the -mtime between each -o or is there an easier way?? ta.
  10. I have the same problem / issue. Though i am sure in the install manuals there is something about how to get this to be put in the kernel at boot (in a start script do a modprobe or something similar to insert the pre built modle).. I THINK this only.. hehe
  11. Tried that and the link from there to the alpha.dns site one.. The problem i get is that the picture contains 2 images of what the camera has grabbed and all the pictures are grainy and with like white lines across them (sort of like a snowy TV picture) Like its half polerised.. cheers for any help
  12. I have nearly got this working but am still hitting a few problems. When i plug this in GnomeMeeting link pops up and on loading that it errors about colours not being correct for camera. I have tried camarama and gqcam and a few others all with mixed results.. The best i get is a picture black an white hazed, liney, fuzzy witha line down the middle. Are there any tips / advice in getting this working. i can send the dmesg and the like if any of those will be of help. Thanks
  13. #!/bin/ksh #This script will take in a value and ftp it from directory to server if [ $# -lt 2 -o $# -gt 3 ] then echo "Usage: ftp_put filename destination [bin]" exit 1 fi echo " open 127.0.0.1 user apoc password $3 put $1 $2 bye " > $$ ftp -n < $$ rm $$ This is a script i use at work.. it creates a tempory file of the PID with the commands to be sent to the FTP client, and this works for the Korn Shell and the FTP on AIX (not tested at home yet, but this should work for you. name the script anything you like (ftp_put.sh) and then call is as so: ftp_put.sh filename_to_send destination_dir_filename if you want to specify binarey but bin on the end of the above. in the script alter the server, username and password to yours (could have these in a file or pass them through by altering the script. Apoc
  14. sorted the problem.. used the following: ---script2.sh--- function checkparam { PARMS=$* server=`echo $PARMS | awk ' { print $NF } '` checkparm=`echo $server | awk -F_ ' { print ( $1 ) } ' ` case ${checkparm} in "CHECKPARAM") export var_server=${server};; *) export var_server=${UKSSP} esac } checkparam $* echo "var_server = $var_server" when we pass a value to the script2.sh now we use . ./path/script2.sh $* PARAM
×
×
  • Create New...